Expand description
Socket options as used by setsockopt
and getsockopt
.
Structs§
- Accept
Conn - Returns a value indicating whether or not this socket has been marked to
accept connections with
listen(2)
. - Broadcast
- Set or get the broadcast flag.
- Dont
Route - Set or get the don’t route flag.
- IpAdd
Membership - Join a multicast group
- IpDrop
Membership - Leave a multicast group.
- IpFreebind
- If enabled, this boolean option allows binding to an IP address that is nonlocal or does not (yet) exist.
- IpMulticast
Loop - Set or read a boolean integer argument that determines whether sent multicast packets should be looped back to the local sockets.
- IpMulticast
Ttl - Set or read the time-to-live value of outgoing multicast packets for this socket.
- Ipv6
Multicast Hops - Set or read the hop limit value of outgoing IPv6 multicast packets for this socket.
- Ipv6
V6Only - The socket is restricted to sending and receiving IPv6 packets only.
- Keep
Alive - Enable sending of keep-alive messages on connection-oriented sockets.
- Linger
- When enabled, a close(2) or shutdown(2) will not return until all queued messages for the socket have been successfully sent or the linger timeout has been reached.
- OobInline
- If this option is enabled, out-of-band data is directly placed into the receive data stream.
- RcvBuf
- Sets or gets the maximum socket receive buffer in bytes.
- Receive
Timeout - Specify the receiving timeout until reporting an error.
- Receive
Timestamp - Enable or disable the receiving of the
SO_TIMESTAMP
control message. - Reuse
Addr - Enables local address reuse
- Reuse
Port - Permits multiple AF_INET or AF_INET6 sockets to be bound to an identical socket address.
- RxqOvfl
- Indicates that an unsigned 32-bit value ancillary message (cmsg) should be attached to received skbs indicating the number of packets dropped by the socket since its creation.
- Send
Timeout - Specify the sending timeout until reporting an error.
- SndBuf
- Sets or gets the maximum socket send buffer in bytes.
- Sock
Type - Gets the socket type as an integer.
- Socket
Error - Get and clear the pending socket error.
- TcpKeep
Count - The maximum number of keepalive probes TCP should send before dropping the connection.
- TcpKeep
Interval - The time (in seconds) between individual keepalive probes.
- TcpMax
Seg - The maximum segment size for outgoing TCP packets.
- TcpNo
Delay - Under most circumstances, TCP sends data when it is presented; when outstanding data has not yet been acknowledged, it gathers small amounts of output to be sent in a single packet once an acknowledgement is received. For a small number of clients, such as window systems that send a stream of mouse events which receive no replies, this packetization may cause significant delays. The boolean option TCP_NODELAY defeats this algorithm.
- TcpRepair
- TcpUser
Timeout - Specifies the maximum amount of time in milliseconds that transmitted data may remain unacknowledged before TCP will forcibly close the corresponding connection