Reference | Class Hierarchy | Class Index | Member Index |
Typedefs | |
typedef implementation_defined | hops |
Socket option for time-to-live associated with outgoing unicast packets. |
typedef implementation_defined asio::ip::unicast::hops |
Socket option for time-to-live associated with outgoing unicast packets.
Implements the IPPROTO_IP/IP_UNICAST_TTL socket option.
asio::ip::udp::socket socket(io_service); ... asio::ip::unicast::hops option(4); socket.set_option(option);
asio::ip::udp::socket socket(io_service); ... asio::ip::unicast::hops option; socket.get_option(option); int ttl = option.value();