nip_tcb Struct Reference

Transmission Control Block, any TCP connection has to have one. More...

#include <tcp.h>

Collaboration diagram for nip_tcb:

Collaboration graph
[legend]

Data Fields

nip_tcp_sock_id_t connid
 ID to address this connection.
nip_tcp_sock_id_t sockid
 association to local Socket Array
struct nip_tcp_sock_addr rem_addr
nip_tcp_stat_t status
uint8_t flags
nip_mem_handle_t rcv_buf
nip_mem_handle_t snd_buf
uint32_t snd_una
uint32_t snd_nxt
uint16_t snd_wnd
uint16_t snd_maxsegsize
uint32_t snd_up
uint32_t snd_wl1
uint32_t snd_wl2
uint32_t iss
uint32_t rcv_nxt
uint16_t rcv_wnd
uint32_t rcv_up
uint32_t irs
uint8_t backup
 time to backup before transmitting again
uint8_t srtt
 smoothed round trip time
nip_time_t rto
 retransmission timeout
uint32_t rt_una
 longest unacked segment to be retransmitted
uint8_t rt_count
 retransmission counter since last ACK
uint32_t push_ptr
 remember what sequence number needed to be pushed
nip_time_t timeout
 time-wait timeout or user timeout, depending on state

Detailed Description

Transmission Control Block, any TCP connection has to have one.

Definition at line 167 of file tcp.h.


Field Documentation

ID to address this connection.

It may differ from sockid for connections spawned from listening socket. Hand this ID to the application upon accepting new connections.

Definition at line 169 of file tcp.h.

Referenced by nip_tcp_accept(), nip_tcp_create_conn(), nip_tcp_del_conn(), nip_tcp_disp_check(), nip_tcp_disp_receive(), and nip_tcp_find_conn().

association to local Socket Array

Definition at line 175 of file tcp.h.

Referenced by nip_tcp_accept(), nip_tcp_create_conn(), nip_tcp_del_conn(), nip_tcp_disp_receive(), nip_tcp_disp_send(), and nip_tcp_find_conn().

Definition at line 176 of file tcp.h.

Referenced by nip_tcp_create_conn(), nip_tcp_disp_send(), and nip_tcp_find_conn().

uint8_t nip_tcb::flags

Definition at line 180 of file tcp.h.

Referenced by nip_tcp_create_conn(), nip_tcp_del_conn(), nip_tcp_disp_receive(), and nip_tcp_read().

uint32_t nip_tcb::snd_una

uint32_t nip_tcb::snd_nxt

uint16_t nip_tcb::snd_wnd

Definition at line 188 of file tcp.h.

Referenced by nip_tcp_disp_receive().

Definition at line 189 of file tcp.h.

uint32_t nip_tcb::snd_up

Definition at line 190 of file tcp.h.

uint32_t nip_tcb::snd_wl1

Definition at line 191 of file tcp.h.

Referenced by nip_tcp_disp_receive().

uint32_t nip_tcb::snd_wl2

Definition at line 192 of file tcp.h.

Referenced by nip_tcp_disp_receive().

uint32_t nip_tcb::iss

Definition at line 193 of file tcp.h.

Referenced by nip_tcp_create_conn().

uint32_t nip_tcb::rcv_nxt

Definition at line 196 of file tcp.h.

Referenced by nip_tcp_disp_receive(), and nip_tcp_disp_send().

uint16_t nip_tcb::rcv_wnd

Definition at line 197 of file tcp.h.

Referenced by nip_tcp_create_conn(), nip_tcp_disp_receive(), and nip_tcp_disp_send().

uint32_t nip_tcb::rcv_up

Definition at line 198 of file tcp.h.

uint32_t nip_tcb::irs

Definition at line 199 of file tcp.h.

Referenced by nip_tcp_disp_receive().

uint8_t nip_tcb::backup

time to backup before transmitting again

Definition at line 202 of file tcp.h.

uint8_t nip_tcb::srtt

smoothed round trip time

Definition at line 203 of file tcp.h.

Referenced by nip_tcp_disp_send().

retransmission timeout

Definition at line 204 of file tcp.h.

Referenced by nip_tcp_disp_check(), nip_tcp_disp_receive(), and nip_tcp_disp_send().

uint32_t nip_tcb::rt_una

longest unacked segment to be retransmitted

Definition at line 205 of file tcp.h.

Referenced by nip_tcp_disp_receive(), and nip_tcp_disp_send().

retransmission counter since last ACK

Definition at line 206 of file tcp.h.

Referenced by nip_tcp_disp_send().

remember what sequence number needed to be pushed

Definition at line 207 of file tcp.h.

Referenced by nip_tcp_disp_send().

time-wait timeout or user timeout, depending on state

Definition at line 208 of file tcp.h.

Referenced by nip_tcp_disp_check(), and nip_tcp_disp_receive().


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

Generated on Thu Jul 10 01:10:10 2008 for NIP by  doxygen 1.5.5