# uip_conn Struct Reference
[The uIP TCP/IP stack]

`#include <uip.h>`

Collaboration diagram for uip_conn:

[legend]

## Data Fields
uip_ipaddr_t | ripaddr
u16_t | lport
u16_t | rport
u8_t | rcv_nxt [4]
u8_t | snd_nxt [4]
u16_t | len
u16_t | mss
u16_t | initialmss
u8_t | sa
u8_t | sv
u8_t | rto
u8_t | tcpstateflags
u8_t | timer
u8_t | nrtx
uip_tcp_appstate_t | appstate

## 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 whos 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.

## Field Documentation

uip_tcp_appstate_t uip_conn::appstate

The application state.

u16_t uip_conn::initialmss

Initial maximum segment size for the connection.

u16_t uip_conn::len

Length of the data that was previously sent.

u16_t uip_conn::lport

The local TCP port, in network byte order.

u16_t uip_conn::mss

Current maximum segment size for the connection.

u8_t uip_conn::nrtx

The number of retransmissions for the last segment sent.

u8_t uip_conn::rcv_nxt[4]

The sequence number that we expect to receive next.

uip_ipaddr_t uip_conn::ripaddr

The IP address of the remote host.

u16_t uip_conn::rport

The local remote TCP port, in network byte order.

u8_t uip_conn::rto

Retransmission time-out.

u8_t uip_conn::sa

Retransmission time-out calculation state variable.

u8_t uip_conn::snd_nxt[4]

The sequence number that was last sent by us.

u8_t uip_conn::sv

Retransmission time-out calculation state variable.

u8_t uip_conn::tcpstateflags

TCP state and flags.

u8_t uip_conn::timer

The retransmission timer.

The documentation for this struct was generated from the following file:

- modules/uip/uip/uip.h