_Socket Struct Reference
Structure describing a socket. More...
#include <socket.h>
Data Fields | |
| uint_t | descriptor |
| uint_t | type |
| uint_t | protocol |
| NetInterface * | interface |
| IpAddr | localIpAddr |
| uint16_t | localPort |
| IpAddr | remoteIpAddr |
| uint16_t | remotePort |
| uint32_t | options |
| Socket options. More... | |
| systime_t | timeout |
| uint8_t | tos |
| Type-of-service value. More... | |
| uint8_t | ttl |
| Time-to-live value for unicast datagrams. More... | |
| uint8_t | multicastTtl |
| Time-to-live value for multicast datagrams. More... | |
| SocketMulticastGroup | multicastGroups [SOCKET_MAX_MULTICAST_GROUPS] |
| Multicast groups. More... | |
| int8_t | vlanPcp |
| VLAN priority (802.1Q) More... | |
| int8_t | vlanDei |
| Drop eligible indicator. More... | |
| int8_t | vmanPcp |
| VMAN priority (802.1ad) More... | |
| int8_t | vmanDei |
| Drop eligible indicator. More... | |
| int_t | errnoCode |
| OsEvent | event |
| uint_t | eventMask |
| uint_t | eventFlags |
| OsEvent * | userEvent |
| TcpState | state |
| Current state of the TCP finite state machine. More... | |
| bool_t | ownedFlag |
| The user is the owner of the TCP socket. More... | |
| bool_t | closedFlag |
| The connection has been closed properly. More... | |
| bool_t | resetFlag |
| The connection has been reset. More... | |
| uint16_t | mss |
| Maximum segment size. More... | |
| uint16_t | smss |
| Sender maximum segment size. More... | |
| uint16_t | rmss |
| Receiver maximum segment size. More... | |
| uint32_t | iss |
| Initial send sequence number. More... | |
| uint32_t | irs |
| Initial receive sequence number. More... | |
| uint32_t | sndUna |
| Data that have been sent but not yet acknowledged. More... | |
| uint32_t | sndNxt |
| Sequence number of the next byte to be sent. More... | |
| uint32_t | sndUser |
| Amount of data buffered but not yet sent. More... | |
| uint32_t | sndWnd |
| Size of the send window. More... | |
| uint32_t | maxSndWnd |
| Maximum send window it has seen so far on the connection. More... | |
| uint32_t | sndWl1 |
| Segment sequence number used for last window update. More... | |
| uint32_t | sndWl2 |
| Segment acknowledgment number used for last window update. More... | |
| uint32_t | rcvNxt |
| Receive next sequence number. More... | |
| uint32_t | rcvUser |
| Number of data received but not yet consumed. More... | |
| uint32_t | rcvWnd |
| Receive window. More... | |
| bool_t | rttBusy |
| RTT measurement is being performed. More... | |
| uint32_t | rttSeqNum |
| Sequence number identifying a TCP segment. More... | |
| systime_t | rttStartTime |
| Round-trip start time. More... | |
| systime_t | srtt |
| Smoothed round-trip time. More... | |
| systime_t | rttvar |
| Round-trip time variation. More... | |
| systime_t | rto |
| Retransmission timeout. More... | |
| TcpCongestState | congestState |
| Congestion state. More... | |
| uint32_t | cwnd |
| Congestion window. More... | |
| uint32_t | ssthresh |
| Slow start threshold. More... | |
| uint_t | dupAckCount |
| Number of consecutive duplicate ACKs. More... | |
| uint32_t | n |
| Number of bytes acknowledged during the whole round-trip. More... | |
| uint32_t | recover |
| NewReno modification to TCP's fast recovery algorithm. More... | |
| bool_t | keepAliveEnabled |
| Specifies whether TCP keep-alive mechanism is enabled. More... | |
| systime_t | keepAliveIdle |
| Keep-alive idle time. More... | |
| systime_t | keepAliveInterval |
| Time interval between subsequent keep-alive probes. More... | |
| uint_t | keepAliveMaxProbes |
| Number of keep-alive probes. More... | |
| uint_t | keepAliveProbeCount |
| Keep-alive probe counter. More... | |
| systime_t | keepAliveTimestamp |
| Keep-alive timestamp. More... | |
| uint8_t | sndWndShift |
| Send window scale factor. More... | |
| uint8_t | rcvWndShift |
| Receive window scale factor. More... | |
| bool_t | wndScaleOptionReceived |
| A TCP window scale option has been received. More... | |
| bool_t | sackPermitted |
| SACK Permitted option received. More... | |
| TcpSackBlock | sackBlock [TCP_MAX_SACK_BLOCKS] |
| List of non-contiguous blocks that have been received. More... | |
| uint_t | sackBlockCount |
| Number of non-contiguous blocks that have been received. More... | |
| TcpTxBuffer | txBuffer |
| Send buffer. More... | |
| size_t | txBufferSize |
| Size of the send buffer. More... | |
| TcpRxBuffer | rxBuffer |
| Receive buffer. More... | |
| size_t | rxBufferSize |
| Size of the receive buffer. More... | |
| TcpQueueItem * | retransmitQueue |
| Retransmission queue. More... | |
| NetTimer | retransmitTimer |
| Retransmission timer. More... | |
| uint_t | retransmitCount |
| Number of retransmissions. More... | |
| TcpSynQueueItem * | synQueue |
| SYN queue for listening sockets. More... | |
| uint_t | synQueueSize |
| Maximum number of pending connections for listening sockets. More... | |
| uint_t | wndProbeCount |
| Zero window probe counter. More... | |
| systime_t | wndProbeInterval |
| Interval between successive probes. More... | |
| NetTimer | persistTimer |
| Persist timer. More... | |
| NetTimer | overrideTimer |
| Override timer. More... | |
| NetTimer | finWait2Timer |
| FIN-WAIT-2 timer. More... | |
| NetTimer | timeWaitTimer |
| 2MSL timer More... | |
| SocketQueueItem * | receiveQueue |
Detailed Description
Field Documentation
◆ closedFlag
◆ congestState
| TcpCongestState congestState |
◆ cwnd
◆ descriptor
◆ dupAckCount
◆ errnoCode
◆ event
◆ eventFlags
◆ eventMask
◆ finWait2Timer
◆ interface
| NetInterface* interface |
◆ irs
◆ iss
◆ keepAliveEnabled
| bool_t keepAliveEnabled |
◆ keepAliveIdle
◆ keepAliveInterval
| systime_t keepAliveInterval |
◆ keepAliveMaxProbes
◆ keepAliveProbeCount
◆ keepAliveTimestamp
◆ localIpAddr
◆ localPort
◆ maxSndWnd
| uint32_t maxSndWnd |
◆ mss
◆ multicastGroups
| SocketMulticastGroup multicastGroups[SOCKET_MAX_MULTICAST_GROUPS] |
◆ multicastTtl
| uint8_t multicastTtl |
◆ n
| uint32_t n |
◆ options
◆ overrideTimer
◆ ownedFlag
◆ persistTimer
◆ protocol
◆ rcvNxt
◆ rcvUser
| uint32_t rcvUser |
◆ rcvWnd
◆ rcvWndShift
◆ receiveQueue
| SocketQueueItem* receiveQueue |
◆ recover
| uint32_t recover |
◆ remoteIpAddr
◆ remotePort
◆ resetFlag
◆ retransmitCount
◆ retransmitQueue
| TcpQueueItem* retransmitQueue |
◆ retransmitTimer
◆ rmss
◆ rto
◆ rttBusy
◆ rttSeqNum
| uint32_t rttSeqNum |
◆ rttStartTime
◆ rttvar
◆ rxBuffer
| TcpRxBuffer rxBuffer |
◆ rxBufferSize
◆ sackBlock
| TcpSackBlock sackBlock[TCP_MAX_SACK_BLOCKS] |
◆ sackBlockCount
| uint_t sackBlockCount |
◆ sackPermitted
◆ smss
◆ sndNxt
| uint32_t sndNxt |
◆ sndUna
| uint32_t sndUna |
◆ sndUser
◆ sndWl1
| uint32_t sndWl1 |
◆ sndWl2
| uint32_t sndWl2 |
◆ sndWnd
◆ sndWndShift
◆ srtt
◆ ssthresh
◆ state
| TcpState state |
◆ synQueue
| TcpSynQueueItem* synQueue |
◆ synQueueSize
| uint_t synQueueSize |
◆ timeout
◆ timeWaitTimer
◆ tos
◆ ttl
◆ txBuffer
| TcpTxBuffer txBuffer |
◆ txBufferSize
◆ type
◆ userEvent
◆ vlanDei
◆ vlanPcp
◆ vmanDei
◆ vmanPcp
◆ wndProbeCount
◆ wndProbeInterval
| systime_t wndProbeInterval |
◆ wndScaleOptionReceived
| bool_t wndScaleOptionReceived |
The documentation for this struct was generated from the following file:
- cyclone_tcp/core/socket.h
