boost::corosio::socket_option
Type‐erased socket option types that avoid platform‐specific headers. The protocol level and option name for each type are resolved at link time via the compiled library.
Description
For an inline (zero‐overhead) alternative that includes platform headers, use <boost/corosio/native/native_socket_option.hpp> (boost::corosio::native_socket_option).
Both variants satisfy the same option‐type interface and work interchangeably with tcp_socket::set_option / tcp_socket::get_option and the corresponding acceptor methods.
Types
Name |
Description |
Base class for concrete boolean socket options. |
|
Allow sending to broadcast addresses (SO_BROADCAST). |
|
Base class for concrete boolean socket options with single‐byte storage. |
|
Base class for concrete integer socket options with single‐byte storage. |
|
Base class for concrete integer socket options. |
|
Join an IPv4 multicast group (IP_ADD_MEMBERSHIP). |
|
Join an IPv6 multicast group (IPV6_JOIN_GROUP). |
|
Enable periodic keepalive probes (SO_KEEPALIVE). |
|
Leave an IPv4 multicast group (IP_DROP_MEMBERSHIP). |
|
Leave an IPv6 multicast group (IPV6_LEAVE_GROUP). |
|
The SO_LINGER socket option. |
|
Set the multicast TTL for IPv4 (IP_MULTICAST_TTL). |
|
Set the multicast hop limit for IPv6 (IPV6_MULTICAST_HOPS). |
|
Set the outgoing interface for IPv4 multicast (IP_MULTICAST_IF). |
|
Set the outgoing interface for IPv6 multicast (IPV6_MULTICAST_IF). |
|
Enable loopback of outgoing multicast on IPv4 (IP_MULTICAST_LOOP). |
|
Enable loopback of outgoing multicast on IPv6 (IPV6_MULTICAST_LOOP). |
|
Disable Nagle's algorithm (TCP_NODELAY). |
|
Set the receive buffer size (SO_RCVBUF). |
|
Allow local address reuse (SO_REUSEADDR). |
|
Allow multiple sockets to bind to the same port (SO_REUSEPORT). |
|
Set the send buffer size (SO_SNDBUF). |
|
Restrict an IPv6 socket to IPv6 only (IPV6_V6ONLY). |
See Also
native_socket_option
Created with MrDocs