Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Namespace

TCP

Public Namespace
std.c.darwin.TCP
pub const TCP = struct

Values

  • pub const NODELAY

    Turn off Nagle's algorithm

  • pub const MAXSEG

    Limit MSS

  • pub const NOPUSH

    Don't push last block of write

  • pub const NOOPT

    Don't use TCP options

  • pub const KEEPALIVE

    Idle time used when SO_KEEPALIVE is enabled

  • pub const CONNECTIONTIMEOUT

    Connection timeout

  • pub const PERSIST_TIMEOUT

    Time after which a conection in persist timeout will terminate.

  • pub const RXT_CONNDROPTIME

    Time after which TCP retransmissions will be stopped and the connection will be dropped.

  • pub const RXT_FINDROP

    Drop a connection after retransmitting the FIN 3 times.

  • pub const KEEPINTVL

    Interval between keepalives

  • pub const KEEPCNT

    Number of keepalives before clsoe

  • pub const SENDMOREACKS

    Always ack every other packet

  • pub const ENABLE_ECN

    Enable ECN on a connection

  • pub const FASTOPEN

    Enable/Disable TCP Fastopen on this socket

  • pub const CONNECTION_INFO

    State of the TCP connection

File

c/darwin.zig:1568
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
pub const TCP = struct {
    /// Turn off Nagle's algorithm
    pub const NODELAY = 0x01;
    /// Limit MSS
    pub const MAXSEG = 0x02;
    /// Don't push last block of write
    pub const NOPUSH = 0x04;
    /// Don't use TCP options
    pub const NOOPT = 0x08;
    /// Idle time used when SO_KEEPALIVE is enabled
    pub const KEEPALIVE = 0x10;
    /// Connection timeout
    pub const CONNECTIONTIMEOUT = 0x20;
    /// Time after which a conection in persist timeout will terminate.
    pub const PERSIST_TIMEOUT = 0x40;
    /// Time after which TCP retransmissions will be stopped and the connection will be dropped.
    pub const RXT_CONNDROPTIME = 0x80;
    /// Drop a connection after retransmitting the FIN 3 times.
    pub const RXT_FINDROP = 0x100;
    /// Interval between keepalives
    pub const KEEPINTVL = 0x101;
    /// Number of keepalives before clsoe
    pub const KEEPCNT = 0x102;
    /// Always ack every other packet
    pub const SENDMOREACKS = 0x103;
    /// Enable ECN on a connection
    pub const ENABLE_ECN = 0x104;
    /// Enable/Disable TCP Fastopen on this socket
    pub const FASTOPEN = 0x105;
    /// State of the TCP connection
    pub const CONNECTION_INFO = 0x106;
}