mbed OS5

Fork of UIPEthernet by Zoltan Hudak

Embed: (wiki syntax)

« Back to documentation index

uip_conn Struct Reference

uip_conn Struct Reference
[The UIP TCP/IP stack]

Representation of a UIP TCP connection. More...

#include <uip.h>

Data Fields

uip_ipaddr_t ripaddr
 The IP address of the remote host.
u16_t lport
 The local TCP port, in network byte order.
u16_t rport
 The local remote TCP port, in network byte order.
u8_t rcv_nxt [4]
 The sequence number that we expect to receive next.
u8_t snd_nxt [4]
 The sequence number that was last sent by us.
u16_t len
 Length of the data that was previously sent.
u16_t mss
 Current maximum segment size for the connection.
u16_t initialmss
 Initial maximum segment size for the connection.
u8_t sa
 Retransmission time-out calculation state variable.
u8_t sv
 Retransmission time-out calculation state variable.
u8_t rto
 Retransmission time-out.
u8_t tcpstateflags
 TCP state and flags.
u8_t timer
 The retransmission timer.
u8_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 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.

Definition at line 1203 of file uip.h.


Field Documentation

The application state.

Definition at line 1231 of file uip.h.

u16_t initialmss

Initial maximum segment size for the connection.

Definition at line 1218 of file uip.h.

u16_t len

Length of the data that was previously sent.

Definition at line 1215 of file uip.h.

u16_t lport

The local TCP port, in network byte order.

Definition at line 1207 of file uip.h.

u16_t mss

Current maximum segment size for the connection.

Definition at line 1216 of file uip.h.

u8_t nrtx

The number of retransmissions for the last segment sent.

Definition at line 1227 of file uip.h.

u8_t rcv_nxt[4]

The sequence number that we expect to receive next.

Definition at line 1211 of file uip.h.

uip_ipaddr_t ripaddr

The IP address of the remote host.

Definition at line 1205 of file uip.h.

u16_t rport

The local remote TCP port, in network byte order.

Definition at line 1208 of file uip.h.

u8_t rto

Retransmission time-out.

Definition at line 1224 of file uip.h.

u8_t sa

Retransmission time-out calculation state variable.

Definition at line 1220 of file uip.h.

u8_t snd_nxt[4]

The sequence number that was last sent by us.

Definition at line 1213 of file uip.h.

u8_t sv

Retransmission time-out calculation state variable.

Definition at line 1222 of file uip.h.

TCP state and flags.

Definition at line 1225 of file uip.h.

u8_t timer

The retransmission timer.

Definition at line 1226 of file uip.h.