Typedefs | |
typedef asio::ip::detail::socket_option::unicast_hops < IPPROTO_IP, IP_TTL, IPPROTO_IPV6, IPV6_UNICAST_HOPS > | hops |
Socket option for time-to-live associated with outgoing unicast packets. |
typedef asio::ip::detail::socket_option::unicast_hops< IPPROTO_IP, IP_TTL, IPPROTO_IPV6, IPV6_UNICAST_HOPS> 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();
Definition at line 61 of file unicast.hpp.