structstd.os.linux.TCP[src]

Values

ConstantNODELAY[src]

Turn off Nagle's algorithm

Source Code

Source code
pub const NODELAY = 1

ConstantMAXSEG[src]

Limit MSS

Source Code

Source code
pub const MAXSEG = 2

ConstantCORK[src]

Never send partially complete segments.

Source Code

Source code
pub const CORK = 3

ConstantKEEPIDLE[src]

Start keeplives after this period, in seconds

Source Code

Source code
pub const KEEPIDLE = 4

ConstantKEEPINTVL[src]

Interval between keepalives

Source Code

Source code
pub const KEEPINTVL = 5

ConstantKEEPCNT[src]

Number of keepalives before death

Source Code

Source code
pub const KEEPCNT = 6

ConstantSYNCNT[src]

Number of SYN retransmits

Source Code

Source code
pub const SYNCNT = 7

ConstantLINGER2[src]

Life time of orphaned FIN-WAIT-2 state

Source Code

Source code
pub const LINGER2 = 8

ConstantDEFER_ACCEPT[src]

Wake up listener only when data arrive

Source Code

Source code
pub const DEFER_ACCEPT = 9

ConstantWINDOW_CLAMP[src]

Bound advertised window

Source Code

Source code
pub const WINDOW_CLAMP = 10

ConstantINFO[src]

Information about this connection.

Source Code

Source code
pub const INFO = 11

ConstantQUICKACK[src]

Block/reenable quick acks

Source Code

Source code
pub const QUICKACK = 12

ConstantCONGESTION[src]

Congestion control algorithm

Source Code

Source code
pub const CONGESTION = 13

ConstantMD5SIG[src]

TCP MD5 Signature (RFC2385)

Source Code

Source code
pub const MD5SIG = 14

ConstantTHIN_LINEAR_TIMEOUTS[src]

Use linear timeouts for thin streams

Source Code

Source code
pub const THIN_LINEAR_TIMEOUTS = 16

ConstantTHIN_DUPACK[src]

Fast retrans. after 1 dupack

Source Code

Source code
pub const THIN_DUPACK = 17

ConstantUSER_TIMEOUT[src]

How long for loss retry before timeout

Source Code

Source code
pub const USER_TIMEOUT = 18

ConstantREPAIR[src]

TCP sock is under repair right now

Source Code

Source code
pub const REPAIR = 19

ConstantREPAIR_QUEUE[src]

Source Code

Source code
pub const REPAIR_QUEUE = 20

ConstantQUEUE_SEQ[src]

Source Code

Source code
pub const QUEUE_SEQ = 21

ConstantREPAIR_OPTIONS[src]

Source Code

Source code
pub const REPAIR_OPTIONS = 22

ConstantFASTOPEN[src]

Enable FastOpen on listeners

Source Code

Source code
pub const FASTOPEN = 23

ConstantTIMESTAMP[src]

Source Code

Source code
pub const TIMESTAMP = 24

ConstantNOTSENT_LOWAT[src]

limit number of unsent bytes in write queue

Source Code

Source code
pub const NOTSENT_LOWAT = 25

ConstantCC_INFO[src]

Get Congestion Control (optional) info

Source Code

Source code
pub const CC_INFO = 26

ConstantSAVE_SYN[src]

Record SYN headers for new connections

Source Code

Source code
pub const SAVE_SYN = 27

ConstantSAVED_SYN[src]

Get SYN headers recorded for connection

Source Code

Source code
pub const SAVED_SYN = 28

ConstantREPAIR_WINDOW[src]

Get/set window parameters

Source Code

Source code
pub const REPAIR_WINDOW = 29

ConstantFASTOPEN_CONNECT[src]

Attempt FastOpen with connect

Source Code

Source code
pub const FASTOPEN_CONNECT = 30

ConstantULP[src]

Attach a ULP to a TCP connection

Source Code

Source code
pub const ULP = 31

ConstantMD5SIG_EXT[src]

TCP MD5 Signature with extensions

Source Code

Source code
pub const MD5SIG_EXT = 32

ConstantFASTOPEN_KEY[src]

Set the key for Fast Open (cookie)

Source Code

Source code
pub const FASTOPEN_KEY = 33

Enable TFO without a TFO cookie

Source code
pub const FASTOPEN_NO_COOKIE = 34

ConstantZEROCOPY_RECEIVE[src]

Source Code

Source code
pub const ZEROCOPY_RECEIVE = 35

ConstantINQ[src]

Notify bytes available to read as a cmsg on read

Source Code

Source code
pub const INQ = 36

ConstantINQ[src]

Notify bytes available to read as a cmsg on read

Source Code

Source code
pub const INQ = 36

ConstantTX_DELAY[src]

delay outgoing packets by XX usec

Source Code

Source code
pub const TX_DELAY = 37

ConstantREPAIR_ON[src]

Source Code

Source code
pub const REPAIR_ON = 1

ConstantREPAIR_OFF[src]

Source Code

Source code
pub const REPAIR_OFF = 0

ConstantREPAIR_OFF_NO_WP[src]

Turn off without window probes

Source Code

Source code
pub const REPAIR_OFF_NO_WP = -1

Source Code

Source code
pub const TCP = struct {
    /// Turn off Nagle's algorithm
    pub const NODELAY = 1;
    /// Limit MSS
    pub const MAXSEG = 2;
    /// Never send partially complete segments.
    pub const CORK = 3;
    /// Start keeplives after this period, in seconds
    pub const KEEPIDLE = 4;
    /// Interval between keepalives
    pub const KEEPINTVL = 5;
    /// Number of keepalives before death
    pub const KEEPCNT = 6;
    /// Number of SYN retransmits
    pub const SYNCNT = 7;
    /// Life time of orphaned FIN-WAIT-2 state
    pub const LINGER2 = 8;
    /// Wake up listener only when data arrive
    pub const DEFER_ACCEPT = 9;
    /// Bound advertised window
    pub const WINDOW_CLAMP = 10;
    /// Information about this connection.
    pub const INFO = 11;
    /// Block/reenable quick acks
    pub const QUICKACK = 12;
    /// Congestion control algorithm
    pub const CONGESTION = 13;
    /// TCP MD5 Signature (RFC2385)
    pub const MD5SIG = 14;
    /// Use linear timeouts for thin streams
    pub const THIN_LINEAR_TIMEOUTS = 16;
    /// Fast retrans. after 1 dupack
    pub const THIN_DUPACK = 17;
    /// How long for loss retry before timeout
    pub const USER_TIMEOUT = 18;
    /// TCP sock is under repair right now
    pub const REPAIR = 19;
    pub const REPAIR_QUEUE = 20;
    pub const QUEUE_SEQ = 21;
    pub const REPAIR_OPTIONS = 22;
    /// Enable FastOpen on listeners
    pub const FASTOPEN = 23;
    pub const TIMESTAMP = 24;
    /// limit number of unsent bytes in write queue
    pub const NOTSENT_LOWAT = 25;
    /// Get Congestion Control (optional) info
    pub const CC_INFO = 26;
    /// Record SYN headers for new connections
    pub const SAVE_SYN = 27;
    /// Get SYN headers recorded for connection
    pub const SAVED_SYN = 28;
    /// Get/set window parameters
    pub const REPAIR_WINDOW = 29;
    /// Attempt FastOpen with connect
    pub const FASTOPEN_CONNECT = 30;
    /// Attach a ULP to a TCP connection
    pub const ULP = 31;
    /// TCP MD5 Signature with extensions
    pub const MD5SIG_EXT = 32;
    /// Set the key for Fast Open (cookie)
    pub const FASTOPEN_KEY = 33;
    /// Enable TFO without a TFO cookie
    pub const FASTOPEN_NO_COOKIE = 34;
    pub const ZEROCOPY_RECEIVE = 35;
    /// Notify bytes available to read as a cmsg on read
    pub const INQ = 36;
    pub const CM_INQ = INQ;
    /// delay outgoing packets by XX usec
    pub const TX_DELAY = 37;

    pub const REPAIR_ON = 1;
    pub const REPAIR_OFF = 0;
    /// Turn off without window probes
    pub const REPAIR_OFF_NO_WP = -1;
}