netconn is only used within lwIP.
 
Symbols
loading...
Files
loading...
SummarySyntaxRelatedReferences

Fields

Field
Declared as
Description
union { int socket; void *ptr; }
timeout to wait for sending data (which means enqueueing data for sending in internal buffers) in milliseconds.
timeout in milliseconds to wait for new data to be received (or connections to arrive for listening netconns).
flags holding more netconn-internal state, see NETCONN_FLAG_* defines.
struct api_msg *
TCP: when data passed to netconn_write doesn't fit into the send buffer, this temporarily stores the message. Also used during connect and close.
A callback function that is informed about events for this netconn.
type of the netconn (TCP, UDP or RAW).
current state of the netconn.
union { struct ip_pcb *ip; struct tcp_pcb *tcp; struct udp_pcb *udp; struct raw_pcb *raw; }
the lwIP internal protocol control block.
the last asynchronous unreported error this netconn had.
mbox where received packets are stored until they are fetched by the netconn application thread (can grow quite big).
mbox where new connections are stored until processed by the application thread.
int
number of threads waiting on an mbox. This is required to unblock all threads when closing while threads are waiting.

References

from examples