A netconn descriptor.
#include <api.h>
Data Fields | |
sys_mbox_t | acceptmbox |
mbox where new connections are stored until processed by the application thread More... | |
netconn_callback | callback |
A callback function that is informed about events for this netconn. More... | |
struct api_msg_msg * | current_msg |
TCP: when data passed to netconn_write doesn't fit into the send buffer, this temporarily stores the message. More... | |
u8_t | flags |
flags holding more netconn-internal state, see NETCONN_FLAG_* defines More... | |
err_t | last_err |
the last error this netconn had More... | |
sys_sem_t | op_completed |
sem that is used to synchroneously execute functions in the core context More... | |
union { | |
struct ip_pcb * ip | |
struct raw_pcb * raw | |
struct tcp_pcb * tcp | |
struct udp_pcb * udp | |
} | pcb |
the lwIP internal protocol control block More... | |
sys_mbox_t | recvmbox |
mbox where received packets are stored until they are fetched by the netconn application thread (can grow quite big) More... | |
int | socket |
only used for socket layer More... | |
enum netconn_state | state |
current state of the netconn More... | |
enum netconn_type | type |
type of the netconn (TCP, UDP or RAW) More... | |
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. More... | |
sys_mbox_t netconn::acceptmbox |
mbox where new connections are stored until processed by the application thread
Referenced by accept_function(), do_listen(), err_tcp(), netconn_accept(), netconn_alloc(), netconn_drain(), and netconn_free().
netconn_callback netconn::callback |
A callback function that is informed about events for this netconn.
Referenced by accept_function(), lwip_accept(), and netconn_alloc().
struct api_msg_msg* netconn::current_msg |
TCP: when data passed to netconn_write doesn't fit into the send buffer, this temporarily stores the message.
Also used during connect and close.
Referenced by do_close(), do_close_internal(), do_connect(), do_connected(), do_delconn(), do_write(), do_writemore(), err_tcp(), and netconn_alloc().
u8_t netconn::flags |
flags holding more netconn-internal state, see NETCONN_FLAG_* defines
Referenced by do_write(), do_writemore(), netconn_alloc(), poll_tcp(), and sent_tcp().
struct ip_pcb* netconn::ip |
Referenced by do_getaddr(), lwip_getsockopt_internal(), and lwip_setsockopt_internal().
err_t netconn::last_err |
the last error this netconn had
Referenced by accept_function(), do_bind(), do_listen(), do_send(), do_write(), err_tcp(), lwip_getsockopt_internal(), netconn_accept(), netconn_alloc(), and netconn_recv_data().
sys_sem_t netconn::op_completed |
sem that is used to synchroneously execute functions in the core context
Referenced by do_close(), do_close_internal(), do_connect(), do_connected(), do_delconn(), do_write(), do_writemore(), err_tcp(), lwip_getsockopt(), lwip_getsockopt_internal(), lwip_setsockopt(), lwip_setsockopt_internal(), netconn_alloc(), netconn_free(), and tcpip_apimsg().
union { ... } netconn::pcb |
the lwIP internal protocol control block
Referenced by accept_function(), do_bind(), do_close(), do_close_internal(), do_connect(), do_delconn(), do_disconnect(), do_getaddr(), do_listen(), do_newconn(), do_recv(), do_send(), do_write(), do_writemore(), err_tcp(), lwip_getsockopt(), lwip_getsockopt_internal(), lwip_setsockopt(), lwip_setsockopt_internal(), netconn_alloc(), netconn_drain(), netconn_free(), pcb_new(), poll_tcp(), recv_tcp(), sent_tcp(), and setup_tcp().
struct raw_pcb* netconn::raw |
Referenced by do_bind(), do_connect(), do_delconn(), do_getaddr(), do_send(), and pcb_new().
sys_mbox_t netconn::recvmbox |
mbox where received packets are stored until they are fetched by the netconn application thread (can grow quite big)
Referenced by accept_function(), do_listen(), err_tcp(), netconn_alloc(), netconn_drain(), netconn_free(), netconn_recv(), netconn_recv_data(), and recv_tcp().
int netconn::socket |
only used for socket layer
Referenced by event_callback(), lwip_accept(), lwip_socket(), and netconn_alloc().
enum netconn_state netconn::state |
current state of the netconn
Referenced by do_close(), do_close_internal(), do_connect(), do_connected(), do_delconn(), do_listen(), do_write(), do_writemore(), err_tcp(), netconn_alloc(), poll_tcp(), and sent_tcp().
struct tcp_pcb* netconn::tcp |
Referenced by accept_function(), do_bind(), do_close(), do_close_internal(), do_connect(), do_delconn(), do_getaddr(), do_listen(), do_newconn(), do_recv(), do_send(), do_write(), do_writemore(), err_tcp(), lwip_getsockopt_internal(), lwip_setsockopt_internal(), netconn_alloc(), netconn_drain(), netconn_free(), pcb_new(), poll_tcp(), recv_tcp(), sent_tcp(), and setup_tcp().
enum netconn_type netconn::type |
type of the netconn (TCP, UDP or RAW)
Referenced by accept_function(), alloc_socket(), do_bind(), do_close(), do_close_internal(), do_connect(), do_connected(), do_delconn(), do_disconnect(), do_getaddr(), do_listen(), do_recv(), do_send(), do_write(), lwip_getsockopt(), lwip_getsockopt_internal(), lwip_send(), lwip_setsockopt(), netconn_alloc(), netconn_drain(), netconn_recv(), netconn_recv_data(), netconn_recved(), netconn_write(), and pcb_new().
struct udp_pcb* netconn::udp |
size_t 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.
Referenced by do_close(), do_delconn(), do_write(), do_writemore(), and netconn_alloc().