Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

lwip_sock Struct Reference

lwip_sock Struct Reference

Contains all internal pointers and states used for a socket. More...

#include <sockets_priv.h>

Data Fields

struct netconnconn
 sockets currently are built on netconns, each socket has one netconn
union lwip_sock_lastdata lastdata
 data that was left from the previous read
s16_t rcvevent
 number of times data was received, set by event_callback(), tested by the receive and select functions
u16_t sendevent
 number of times data was ACKed (free send buffer), set by event_callback(), tested by select
u16_t errevent
 error happened for this socket, set by event_callback(), tested by select
SELWAIT_T select_waiting
 counter of how many threads are waiting for this socket using select

Detailed Description

Contains all internal pointers and states used for a socket.

Definition at line 67 of file sockets_priv.h.


Field Documentation

struct netconn* conn

sockets currently are built on netconns, each socket has one netconn

Definition at line 69 of file sockets_priv.h.

u16_t errevent

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

Definition at line 80 of file sockets_priv.h.

union lwip_sock_lastdata lastdata

data that was left from the previous read

Definition at line 71 of file sockets_priv.h.

s16_t rcvevent

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

Definition at line 75 of file sockets_priv.h.

SELWAIT_T select_waiting

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

Definition at line 82 of file sockets_priv.h.

u16_t sendevent

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

Definition at line 78 of file sockets_priv.h.