Microchip® Advanced Software Framework

lwip_sock Struct Reference

Contains all internal pointers and states used for a socket.

Data Fields

struct netconnconn
 sockets currently are built on netconns, each socket has one netconn More...
 
u8_t err
 last error that occurred on this socket (in fact, all our errnos fit into an u8_t) More...
 
u16_t errevent
 error happened for this socket, set by event_callback(), tested by select More...
 
voidlastdata
 data that was left from the previous read More...
 
u16_t lastoffset
 offset in the data that was left from the previous read More...
 
s16_t rcvevent
 number of times data was received, set by event_callback(), tested by the receive and select functions More...
 
SELWAIT_T select_waiting
 counter of how many threads are waiting for this socket using select More...
 
u16_t sendevent
 number of times data was ACKed (free send buffer), set by event_callback(), tested by select More...
 

u8_t lwip_sock::err

last error that occurred on this socket (in fact, all our errnos fit into an u8_t)

Referenced by alloc_socket(), free_socket(), lwip_bind(), lwip_connect(), lwip_getsockopt_impl(), lwip_listen(), lwip_send(), lwip_sendto(), and lwip_shutdown().

u16_t lwip_sock::errevent

error happened for this socket, set by event_callback(), tested by select

Referenced by alloc_socket(), event_callback(), and lwip_selscan().

void* lwip_sock::lastdata

data that was left from the previous read

Referenced by alloc_socket(), free_socket(), lwip_close(), lwip_ioctl(), lwip_recvfrom(), and lwip_selscan().

u16_t lwip_sock::lastoffset

offset in the data that was left from the previous read

Referenced by alloc_socket(), free_socket(), lwip_ioctl(), and lwip_recvfrom().

s16_t lwip_sock::rcvevent

number of times data was received, set by event_callback(), tested by the receive and select functions

Referenced by alloc_socket(), event_callback(), lwip_accept(), lwip_ioctl(), lwip_recvfrom(), and lwip_selscan().

SELWAIT_T lwip_sock::select_waiting

counter of how many threads are waiting for this socket using select

Referenced by alloc_socket(), event_callback(), and lwip_select().

u16_t lwip_sock::sendevent

number of times data was ACKed (free send buffer), set by event_callback(), tested by select

Referenced by alloc_socket(), event_callback(), and lwip_selscan().