Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

_tcp_Socket Struct Reference

#include <WATTCP.H>


Detailed Description

TCP Socket definition (fields common to _udp_Socket must come first).

Definition at line 614 of file WATTCP.H.

Data Fields

_tcp_Socketnext
 link to next tcp-socket
 UDP_TCP_COMMON
BYTE rx_buf [tcp_MaxBufSize+1]
 received data buffer
ip6_address my6addr
 our IPv6 address
ip6_address his6addr
 peer's IPv6 address
UINT state
 tcp connection state
DWORD recv_next
 SEQ number we expect to receive.
DWORD send_next
 SEQ we send but not ACK-ed by peer.
long send_una
 unacked send data, must be signed
DWORD last_acknum [2]
 for pcdbug.c; to follow SEQ/ACK
DWORD last_seqnum [2]
 increments
DWORD timeout
 timer for retrans etc
BYTE unhappy
 flag, indicates retransmitting segt's
BYTE recent
 1 if recently transmitted
WORD flags
 TCP flags used in next Tx.
UINT window
 other guy's window
UINT adv_win
 our last advertised window
BYTE cwindow
 Congestion window.
BYTE wwindow
 Van Jacobson's algorithm.
WORD fill_4
DWORD vj_sa
 VJ's alg, standard average (SRTT).
DWORD vj_sd
 VJ's alg, standard deviation (RTTVAR).
DWORD vj_last
 last transmit time
UINT rto
 retransmission timeout
BYTE karn_count
 count of packets
BYTE tos
 TOS from IP-header.
WORD fill_5
DWORD rtt_time
 Round Trip Time value.
DWORD rtt_lasttran
 RTT at last transmission.
DWORD ts_sent
 last TimeStamp value sent
DWORD ts_recent
 last TimeStamp value received
DWORD ts_echo
 last TimeStamp echo received
UINT max_seg
 MSS for this connection.
DWORD missed_seq [2]
 S.
char * secret
 Secret for MD5 finger-print.
DWORD inactive_to
 inactive timer (no Rx data)
DWORD datatimer
 inactive timer (no Tx data)
BYTE tx_wscale
BYTE rx_wscale
UINT tx_queuelen
 optional Tx queue length
const BYTEtx_queue
UINT tx_datalen
 number of bytes of data to send
UINT max_tx_data
 Last index for tx_data[].
BYTEtx_data
 Tx data buffer (default tx_buf[]).
BYTE tx_buf [tcp_MaxTxBufSize+1]
 data for transmission
DWORD safetysig
 magic marker
DWORD safetytcp
 extra magic marker


Field Documentation

DWORD _tcp_Socket::missed_seq[2]
 

S.

Lawson - handle one dropped segment.

Todo:
Make a prober re-assembly queue. missed_seq[0] is left edge of missing segment. missed_seq[1] is right edge (in peer's absolute SEQ space)
Definition at line 667 of file WATTCP.H.

BYTE _tcp_Socket::tx_wscale
 

Todo:
window scales shifts, Tx/Rx
Definition at line 677 of file WATTCP.H.


Generated on Wed Aug 4 08:55:59 2010 for Watt-32 tcp/ip by doxygen 1.3.8