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.
#include <uip.h>
Data Fields | |
uip_tcp_appstate_t | appstate |
The application state. More... | |
uint16_t | initialmss |
Initial maximum segment size for the connection. More... | |
uint16_t | len |
Length of the data that was previously sent. More... | |
uint16_t | lport |
The local TCP port, in network byte order. More... | |
uint16_t | mss |
Current maximum segment size for the connection. More... | |
uint8_t | nrtx |
The number of retransmissions for the last segment sent. More... | |
uint8_t | rcv_nxt [4] |
The sequence number that we expect to receive next. More... | |
uip_ipaddr_t | ripaddr |
The IP address of the remote host. More... | |
uint16_t | rport |
The local remote TCP port, in network byte order. More... | |
uint8_t | rto |
Retransmission time-out. More... | |
uint8_t | sa |
Retransmission time-out calculation state variable. More... | |
uint8_t | snd_nxt [4] |
The sequence number that was last sent by us. More... | |
uint8_t | sv |
Retransmission time-out calculation state variable. More... | |
uint8_t | tcpstateflags |
TCP state and flags. More... | |
uint8_t | timer |
The retransmission timer. More... | |
uip_tcp_appstate_t uip_conn::appstate |
The application state.
Referenced by eventhandler(), and tcpip_uipcall().
uint16_t uip_conn::initialmss |
uint16_t uip_conn::len |
Length of the data that was previously sent.
Referenced by uip_process().
uint16_t uip_conn::lport |
The local TCP port, in network byte order.
Referenced by appcall(), make_tcp_stats(), tcpip_uipcall(), and uip_process().
uint16_t uip_conn::mss |
uint8_t uip_conn::nrtx |
The number of retransmissions for the last
segment sent.
Referenced by make_tcp_stats(), and uip_process().
uint8_t uip_conn::rcv_nxt[4] |
uip_ipaddr_t uip_conn::ripaddr |
The IP address of the remote host.
Referenced by make_tcp_stats(), and uip_process().
uint16_t uip_conn::rport |
The local remote TCP port, in network byte
order.
Referenced by make_tcp_stats(), and uip_process().
uint8_t uip_conn::rto |
Retransmission time-out.
Referenced by uip_process().
uint8_t uip_conn::sa |
uint8_t uip_conn::snd_nxt[4] |
The sequence number that was last sent by us.
Referenced by uip_process().
uint8_t uip_conn::sv |
uint8_t uip_conn::tcpstateflags |
TCP state and flags.
Referenced by eventhandler(), make_tcp_stats(), and uip_process().
uint8_t uip_conn::timer |
The retransmission timer.
Referenced by make_tcp_stats(), and uip_process().