SAMV71 Xplained Ultra Software Package 1.4

netconn Struct Reference

#include <D:/git/git_canopus_1/softpack/samv7/libraries/liblwip/source/lwip_1.3.2/src/include/lwip/api.h>

Data Fields

enum netconn_type type
enum netconn_state state
union {
   struct ip_pcb *   ip
   struct tcp_pcb *   tcp
   struct udp_pcb *   udp
   struct raw_pcb *   raw
pcb
err_t err
sys_sem_t op_completed
sys_mbox_t recvmbox
sys_mbox_t acceptmbox
int socket
s16_t recv_avail
struct api_msg_msgwrite_msg
size_t write_offset
netconn_callback callback

Detailed Description

A netconn descriptor

Definition at line 109 of file api.h.


Field Documentation

sys_mbox_t netconn::acceptmbox

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

Definition at line 130 of file api.h.

netconn_callback netconn::callback

A callback function that is informed about events for this netconn

Definition at line 158 of file api.h.

err_t netconn::err

the last error this netconn had

Definition at line 122 of file api.h.

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

Definition at line 124 of file api.h.

union { ... } netconn::pcb

the lwIP internal protocol control block

sys_mbox_t netconn::recvmbox

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

Definition at line 127 of file api.h.

only used for socket layer

Definition at line 132 of file api.h.

enum netconn_state netconn::state

current state of the netconn

Definition at line 113 of file api.h.

enum netconn_type netconn::type

type of the netconn (TCP, UDP or RAW)

Definition at line 111 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 146 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 149 of file api.h.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines