netconn_evt is only used within LwIP.
 
Symbols
loading...
Files
loading...

netconn_evt enum

Used to inform the callback function about changes Event explanation: In the netconn implementation, there are three ways to block a client: - accept mbox (sys_arch_mbox_fetch(&conn->acceptmbox, &accept_ptr, 0); in netconn_accept()) - receive mbox (sys_arch_mbox_fetch(&conn->recvmbox, &buf, 0); in netconn_recv_data()) - send queue is full (sys_arch_sem_wait(LWIP_API_MSG_SEM(msg), 0); in lwip_netconn_do_write()) The events have to be seen as events signaling the state of these mboxes/semaphores. For non-blocking connections, you need to know in advance whether a call to a netconn function call would block or not, and these events tell you about that. RCVPLUS events say: Safe to perform a potentially blocking call call once more. They are counted in sockets - three RCVPLUS events for accept mbox means you are safe to call netconn_accept 3 times without being blocked. Same thing for receive mbox. RCVMINUS events say: Your call to to a possibly blocking function is "acknowledged". Socket implementation decrements the counter. For TX, there is no need to count, its merely a flag. SENDPLUS means you may send something. SENDPLUS occurs when enough data was delivered to peer so netconn_send() can be called again. A SENDMINUS event occurs when the next call to a netconn_send() would be blocking.

Values

NETCONN_EVT_RCVPLUS

No summary provided. Read more...

NETCONN_EVT_RCVMINUS

No summary provided. Read more...

NETCONN_EVT_SENDPLUS

No summary provided. Read more...

NETCONN_EVT_SENDMINUS

No summary provided. Read more...

NETCONN_EVT_ERROR

No summary provided. Read more...

References

LocationReferrerScopeText
api.h:181
enum netconn_evt {
api.h:215netconn_callback::#1
typedef void (* netconn_callback)(struct netconn *, enum netconn_evt, u16_t len);
sockets.c:288event_callback()::evtevent_callback()
static void event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len);
sockets.c:2477event_callback()
event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len)

Type Use

Variables of netconn_evt type
netconn_callback::#1
all items filtered out
netconn_evt
Allocators of netconn_evt
Deletors of netconn_evt
all items filtered out
netconn_evt
all items filtered out