My fork of the HTTPServer (working)
Dependents:
DGWWebServer
LAN2
« Back to documentation index
netconn Struct Reference
A netconn descriptor.
More...
#include <api.h >
Data Fields
enum netconn_type type
type of the netconn (TCP, UDP or RAW)
enum netconn_state state
current state of the netconn
err_t err
the last error this netconn had
sys_sem_t op_completed
sem that is used to synchroneously execute functions in the core context
sys_mbox_t recvmbox
mbox where received packets are stored until they are fetched by the netconn application thread (can grow quite big)
sys_mbox_t acceptmbox
mbox where new connections are stored until processed by the application thread
int socket
only used for socket layer
int recv_timeout
timeout to wait for new data to be received (or connections to arrive for listening netconns)
int recv_bufsize
maximum amount of bytes queued in recvmbox
struct api_msg_msg * write_msg
TCP: when data passed to netconn_write doesn't fit into the send buffer, this temporarily stores the message.
size_t write_offset
TCP: when data passed to netconn_write doesn't fit into the send buffer, this temporarily stores how much is already sent.
u8_t write_delayed
TCP: when data passed to netconn_write doesn't fit into the send buffer, this temporarily stores whether to wake up the original application task if data couldn't be sent in the first try.
netconn_callback callback
A callback function that is informed about events for this netconn.
Detailed Description
A netconn descriptor.
Definition at line 107 of file api.h .
Field Documentation
mbox where new connections are stored until processed by the application thread
Definition at line 128 of file api.h .
A callback function that is informed about events for this netconn.
Definition at line 156 of file api.h .
the last error this netconn had
Definition at line 120 of file api.h .
sem that is used to synchroneously execute functions in the core context
Definition at line 122 of file api.h .
maximum amount of bytes queued in recvmbox
Definition at line 138 of file api.h .
timeout to wait for new data to be received (or connections to arrive for listening netconns)
Definition at line 134 of file api.h .
mbox where received packets are stored until they are fetched by the netconn application thread (can grow quite big)
Definition at line 125 of file api.h .
only used for socket layer
Definition at line 130 of file api.h .
current state of the netconn
Definition at line 111 of file api.h .
type of the netconn (TCP, UDP or RAW)
Definition at line 109 of file api.h .
TCP: when data passed to netconn_write doesn't fit into the send buffer, this temporarily stores whether to wake up the original application task if data couldn't be sent in the first try.
Definition at line 153 of file api.h .
TCP: when data passed to netconn_write doesn't fit into the send buffer, this temporarily stores the message.
Definition at line 143 of file api.h .
TCP: when data passed to netconn_write doesn't fit into the send buffer, this temporarily stores how much is already sent.
Definition at line 147 of file api.h .