Webserver+3d print

Dependents:   Nucleo

Embed: (wiki syntax)

« Back to documentation index

_Socket Struct Reference

_Socket Struct Reference

Structure describing a socket. More...

#include <socket.h>

Data Fields

TcpState state
 Current state of the TCP finite state machine.
bool_t ownedFlag
 The user is the owner of the TCP socket.
bool_t closedFlag
 The connection has been closed properly.
bool_t resetFlag
 The connection has been reset.
uint16_t smss
 Sender maximum segment size.
uint16_t rmss
 Receiver maximum segment size.
uint32_t iss
 Initial send sequence number.
uint32_t irs
 Initial receive sequence number.
uint32_t sndUna
 Data that have been sent but not yet acknowledged.
uint32_t sndNxt
 Sequence number of the next byte to be sent.
uint16_t sndUser
 Amount of data buffered but not yet sent.
uint16_t sndWnd
 Size of the send window.
uint16_t maxSndWnd
 Maximum send window it has seen so far on the connection.
uint32_t sndWl1
 Segment sequence number used for last window update.
uint32_t sndWl2
 Segment acknowledgment number used for last window update.
uint32_t rcvNxt
 Receive next sequence number.
uint16_t rcvUser
 Number of data received but not yet consumed.
uint16_t rcvWnd
 Receive window.
bool_t rttBusy
 RTT measurement is being performed.
uint32_t rttSeqNum
 Sequence number identifying a TCP segment.
systime_t rttStartTime
 Round-trip start time.
systime_t srtt
 Smoothed round-trip time.
systime_t rttvar
 Round-trip time variation.
systime_t rto
 Retransmission timeout.
TcpCongestState congestState
 Congestion state.
uint16_t cwnd
 Congestion window.
uint16_t ssthresh
 Slow start threshold.
uint_t dupAckCount
 Number of consecutive duplicate ACKs.
uint_t n
 Number of bytes acknowledged during the whole round-trip.
uint32_t recover
 NewReno modification to TCP's fast recovery algorithm.
TcpTxBuffer txBuffer
 Send buffer.
size_t txBufferSize
 Size of the send buffer.
TcpRxBuffer rxBuffer
 Receive buffer.
size_t rxBufferSize
 Size of the receive buffer.
TcpQueueItemretransmitQueue
 Retransmission queue.
TcpTimer retransmitTimer
 Retransmission timer.
uint_t retransmitCount
 Number of retransmissions.
TcpSynQueueItemsynQueue
 SYN queue for listening sockets.
uint_t synQueueSize
 Maximum number of pending connections for listening sockets.
uint_t wndProbeCount
 Zero window probe counter.
systime_t wndProbeInterval
 Interval between successive probes.
TcpTimer persistTimer
 Persist timer.
TcpTimer overrideTimer
 Override timer.
TcpTimer finWait2Timer
 FIN-WAIT-2 timer.
TcpTimer timeWaitTimer
 2MSL timer
bool_t sackPermitted
 SACK Permitted option received.
TcpSackBlock sackBlock [TCP_MAX_SACK_BLOCKS]
 List of non-contiguous blocks that have been received.
uint_t sackBlockCount
 Number of non-contiguous blocks that have been received.

Detailed Description

Structure describing a socket.

Definition at line 204 of file socket.h.


Field Documentation

bool_t closedFlag

The connection has been closed properly.

Definition at line 226 of file socket.h.

Congestion state.

Definition at line 254 of file socket.h.

uint16_t cwnd

Congestion window.

Definition at line 255 of file socket.h.

uint_t dupAckCount

Number of consecutive duplicate ACKs.

Definition at line 257 of file socket.h.

FIN-WAIT-2 timer.

Definition at line 279 of file socket.h.

uint32_t irs

Initial receive sequence number.

Definition at line 232 of file socket.h.

uint32_t iss

Initial send sequence number.

Definition at line 231 of file socket.h.

uint16_t maxSndWnd

Maximum send window it has seen so far on the connection.

Definition at line 238 of file socket.h.

uint_t n

Number of bytes acknowledged during the whole round-trip.

Definition at line 258 of file socket.h.

Override timer.

Definition at line 278 of file socket.h.

bool_t ownedFlag

The user is the owner of the TCP socket.

Definition at line 225 of file socket.h.

Persist timer.

Definition at line 277 of file socket.h.

uint32_t rcvNxt

Receive next sequence number.

Definition at line 242 of file socket.h.

uint16_t rcvUser

Number of data received but not yet consumed.

Definition at line 243 of file socket.h.

uint16_t rcvWnd

Receive window.

Definition at line 244 of file socket.h.

uint32_t recover

NewReno modification to TCP's fast recovery algorithm.

Definition at line 259 of file socket.h.

bool_t resetFlag

The connection has been reset.

Definition at line 227 of file socket.h.

Number of retransmissions.

Definition at line 269 of file socket.h.

Retransmission queue.

Definition at line 267 of file socket.h.

Retransmission timer.

Definition at line 268 of file socket.h.

uint16_t rmss

Receiver maximum segment size.

Definition at line 230 of file socket.h.

systime_t rto

Retransmission timeout.

Definition at line 251 of file socket.h.

bool_t rttBusy

RTT measurement is being performed.

Definition at line 246 of file socket.h.

uint32_t rttSeqNum

Sequence number identifying a TCP segment.

Definition at line 247 of file socket.h.

systime_t rttStartTime

Round-trip start time.

Definition at line 248 of file socket.h.

systime_t rttvar

Round-trip time variation.

Definition at line 250 of file socket.h.

Receive buffer.

Definition at line 264 of file socket.h.

size_t rxBufferSize

Size of the receive buffer.

Definition at line 265 of file socket.h.

TcpSackBlock sackBlock[TCP_MAX_SACK_BLOCKS]

List of non-contiguous blocks that have been received.

Definition at line 283 of file socket.h.

Number of non-contiguous blocks that have been received.

Definition at line 284 of file socket.h.

bool_t sackPermitted

SACK Permitted option received.

Definition at line 282 of file socket.h.

uint16_t smss

Sender maximum segment size.

Definition at line 229 of file socket.h.

uint32_t sndNxt

Sequence number of the next byte to be sent.

Definition at line 235 of file socket.h.

uint32_t sndUna

Data that have been sent but not yet acknowledged.

Definition at line 234 of file socket.h.

uint16_t sndUser

Amount of data buffered but not yet sent.

Definition at line 236 of file socket.h.

uint32_t sndWl1

Segment sequence number used for last window update.

Definition at line 239 of file socket.h.

uint32_t sndWl2

Segment acknowledgment number used for last window update.

Definition at line 240 of file socket.h.

uint16_t sndWnd

Size of the send window.

Definition at line 237 of file socket.h.

systime_t srtt

Smoothed round-trip time.

Definition at line 249 of file socket.h.

uint16_t ssthresh

Slow start threshold.

Definition at line 256 of file socket.h.

Current state of the TCP finite state machine.

Definition at line 224 of file socket.h.

SYN queue for listening sockets.

Definition at line 271 of file socket.h.

uint_t synQueueSize

Maximum number of pending connections for listening sockets.

Definition at line 272 of file socket.h.

2MSL timer

Definition at line 280 of file socket.h.

Send buffer.

Definition at line 262 of file socket.h.

size_t txBufferSize

Size of the send buffer.

Definition at line 263 of file socket.h.

uint_t wndProbeCount

Zero window probe counter.

Definition at line 274 of file socket.h.

systime_t wndProbeInterval

Interval between successive probes.

Definition at line 275 of file socket.h.