All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Typedefs
asio::ip::unicast Namespace Reference

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 Documentation

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.

Examples
Setting the option:
 asio::ip::udp::socket socket(io_service); 
 ...
 asio::ip::unicast::hops option(4);
 socket.set_option(option);
Getting the current option value:
 asio::ip::udp::socket socket(io_service); 
 ...
 asio::ip::unicast::hops option;
 socket.get_option(option);
 int ttl = option.value();
Concepts:
GettableSocketOption, SettableSocketOption.

Definition at line 61 of file unicast.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Castor
Author(s): Carpe Noctem
autogenerated on Fri Nov 8 2013 11:05:41