weAut_01 / weAutSys    R 2.2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Data Structures | Variables
Variables for uIP device drivers
+ + uIP -- Adam Dunkels' TCP/IP stack + +

Overview

uIP has a few global variables that are used in device drivers for uIP.

Data Structures

struct  uipConn_t
 Representation of a uIP TCP connection. More...

Variables

struct uipConn_tuip_conn
 Pointer to the current TCP connection.
struct uipConn_t uip_conns []
 The array containing all uIP connections.
uint16_t uip_len
 The length of the packet in the uip_buf buffer.

Variable Documentation

uint16_t uip_len

The length of the packet in the uip_buf buffer.

The global variable uip_len holds the length of the packet in the uip_buf buffer.

When the network device driver calls the uIP input function, uip_len should be set to the length of the packet in the uip_buf buffer.

When sending packets, the device driver should use the contents of the uip_len variable to determine the length of the outgoing packet.

Pointer to the current TCP connection.

The uip_conn pointer can be used to access the current TCP connection

Examples:
main.c.
struct uipConn_t uip_conns[]

The array containing all uIP connections.

  See also:   UIP_CONNS