netconn Struct Reference

#include <lwip/src/include/lwip/api.h>


Data Fields

enum netconn_type type
enum netconn_state state
err_t err
sys_sem_t op_completed
sys_mbox_t recvmbox
sys_mbox_t acceptmbox
int socket
int recv_timeout
int recv_bufsize
struct api_msg_msgwrite_msg
int write_offset
u8_t write_delayed
netconn_callback callback


Detailed Description

A netconn descriptor

Field Documentation

enum netconn_type netconn::type

type of the netconn (TCP, UDP or RAW)

enum netconn_state netconn::state

current state of the netconn

err_t netconn::err

the last error this netconn had

sys_sem_t netconn::op_completed

sem that is used to synchroneously execute functions in the core context

sys_mbox_t netconn::recvmbox

mbox where received packets are stored until they are fetched by the netconn application thread (can grow quite big)

sys_mbox_t netconn::acceptmbox

mbox where new connections are stored until processed by the application thread

int netconn::socket

only used for socket layer

int netconn::recv_timeout

timeout to wait for new data to be received (or connections to arrive for listening netconns)

int netconn::recv_bufsize

maximum amount of bytes queued in recvmbox

struct api_msg_msg* netconn::write_msg [read]

TCP: when data passed to netconn_write doesn't fit into the send buffer, this temporarily stores the message.

int netconn::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 netconn::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 netconn::callback

A callback function that is informed about events for this netconn


The documentation for this struct was generated from the following file:
Generated on Sun Mar 23 19:22:46 2008 for lwIP 1.3.0 by  doxygen 1.5.4