uIP 1.0 based webserver for LPC1114 + ENC28J60

Dependencies:   mbed TMP102

Embed: (wiki syntax)

« Back to documentation index

uip_conn Struct Reference

uip_conn Struct Reference
[Uip]

Representation of a uIP TCP connection. More...

#include <uip.h>

Data Fields

uip_ipaddr_t ripaddr
 The IP address of the remote host.
uint16_t lport
 The local TCP port, in network byte order.
uint16_t rport
 The local remote TCP port, in network byte order.
uint8_t rcv_nxt [4]
 The sequence number that we expect to receive next.
uint8_t snd_nxt [4]
 The sequence number that was last sent by us.
uint16_t len
 Length of the data that was previously sent.
uint16_t mss
 Current maximum segment size for the connection.
uint16_t initialmss
 Initial maximum segment size for the connection.
uint8_t sa
 Retransmission time-out calculation state variable.
uint8_t sv
 Retransmission time-out calculation state variable.
uint8_t rto
 Retransmission time-out.
uint8_t tcpstateflags
 TCP state and flags.
uint8_t timer
 The retransmission timer.
uint8_t nrtx
 The number of retransmissions for the last segment sent.
uip_tcp_appstate_t appstate
 The application state.

Detailed Description

Representation of a uIP TCP connection.

The uip_conn structure is used for identifying a connection. All but one field in the structure are to be considered read-only by an application. The only exception is the appstate field whose purpose is to let the application store application-specific state (e.g., file pointers) for the connection. The type of this field is configured in the "uipopt.h" header file.

Definition at line 1297 of file uip.h.


Field Documentation

The application state.

Definition at line 1324 of file uip.h.

uint16_t initialmss

Initial maximum segment size for the connection.

Definition at line 1311 of file uip.h.

uint16_t len

Length of the data that was previously sent.

Definition at line 1308 of file uip.h.

uint16_t lport

The local TCP port, in network byte order.

Definition at line 1300 of file uip.h.

uint16_t mss

Current maximum segment size for the connection.

Definition at line 1309 of file uip.h.

uint8_t nrtx

The number of retransmissions for the last segment sent.

Definition at line 1320 of file uip.h.

uint8_t rcv_nxt[4]

The sequence number that we expect to receive next.

Definition at line 1304 of file uip.h.

uip_ipaddr_t ripaddr

The IP address of the remote host.

Definition at line 1298 of file uip.h.

uint16_t rport

The local remote TCP port, in network byte order.

Definition at line 1301 of file uip.h.

uint8_t rto

Retransmission time-out.

Definition at line 1317 of file uip.h.

uint8_t sa

Retransmission time-out calculation state variable.

Definition at line 1313 of file uip.h.

uint8_t snd_nxt[4]

The sequence number that was last sent by us.

Definition at line 1306 of file uip.h.

uint8_t sv

Retransmission time-out calculation state variable.

Definition at line 1315 of file uip.h.

uint8_t tcpstateflags

TCP state and flags.

Definition at line 1318 of file uip.h.

uint8_t timer

The retransmission timer.

Definition at line 1319 of file uip.h.