socket
only.Expand description
Socket options as used by setsockopt
and getsockopt
.
Structs
Returns a value indicating whether or not this socket has been marked to
accept connections with listen(2)
.
Set or get the broadcast flag.
Set or get the don’t route flag.
Join a multicast group
Set “don’t fragment packet” flag on the IP packet.
Leave a multicast group.
Set or read a boolean integer argument that determines whether sent multicast packets should be looped back to the local sockets.
Set or read the time-to-live value of outgoing multicast packets for this socket.
Pass an IP_PKTINFO
ancillary message that contains a pktinfo
structure that supplies some information about the incoming packet.
The recvmsg(2)
call will return the destination IP address for a UDP
datagram.
net
The recvmsg(2)
call returns a struct sockaddr_dl
corresponding to
the interface on which the packet was received.
Join an IPv6 multicast group.
Set “don’t fragment packet” flag on the IPv6 packet.
Leave an IPv6 multicast group.
Set delivery of the IPV6_PKTINFO
control message on incoming
datagrams.
net
The socket is restricted to sending and receiving IPv6 packets only.
Enable sending of keep-alive messages on connection-oriented sockets.
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.
Get the credentials of the peer process of a connected unix domain socket.
If this option is enabled, out-of-band data is directly placed into the receive data stream.
Sets or gets the maximum socket receive buffer in bytes.
Specify the receiving timeout until reporting an error.
Enable or disable the receiving of the SO_TIMESTAMP
control message.
Enables local address reuse
Permits multiple AF_INET or AF_INET6 sockets to be bound to an identical socket address.
Specify the sending timeout until reporting an error.
Sets or gets the maximum socket send buffer in bytes.
Gets the socket type as an integer.
Get and clear the pending socket error.
net
Specify the amount of time, in seconds, that the connection must be idle before keepalive probes (if enabled) are sent.
net
The maximum number of keepalive probes TCP should send before dropping the connection.
The time (in seconds) between individual keepalive probes.
The maximum segment size for outgoing TCP packets.
net
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.