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

Typedefs

typedef
asio::ip::detail::socket_option::multicast_enable_loopback
< IPPROTO_IP,
IP_MULTICAST_LOOP,
IPPROTO_IPV6,
IPV6_MULTICAST_LOOP > 
enable_loopback
typedef
asio::ip::detail::socket_option::multicast_hops
< IPPROTO_IP, IP_MULTICAST_TTL,
IPPROTO_IPV6,
IPV6_MULTICAST_HOPS > 
hops
 Socket option for time-to-live associated with outgoing multicast packets.
typedef
asio::ip::detail::socket_option::multicast_request
< IPPROTO_IP,
IP_ADD_MEMBERSHIP,
IPPROTO_IPV6, IPV6_JOIN_GROUP > 
join_group
 Socket option to join a multicast group on a specified interface.
typedef
asio::ip::detail::socket_option::multicast_request
< IPPROTO_IP,
IP_DROP_MEMBERSHIP,
IPPROTO_IPV6, IPV6_LEAVE_GROUP > 
leave_group
 Socket option to leave a multicast group on a specified interface.
typedef
asio::ip::detail::socket_option::network_interface
< IPPROTO_IP, IP_MULTICAST_IF,
IPPROTO_IPV6,
IPV6_MULTICAST_IF > 
outbound_interface
 Socket option for local interface to use for outgoing multicast packets.

Typedef Documentation

typedef asio::ip::detail::socket_option::multicast_enable_loopback< IPPROTO_IP, IP_MULTICAST_LOOP, IPPROTO_IPV6, IPV6_MULTICAST_LOOP> asio::ip::multicast::enable_loopback

Socket option determining whether outgoing multicast packets will be received on the same socket if it is a member of the multicast group. Implements the IPPROTO_IP/IP_MULTICAST_LOOP socket option.

Examples
Setting the option:
 asio::ip::udp::socket socket(io_service); 
 ...
 asio::ip::multicast::enable_loopback option(true);
 socket.set_option(option);
Getting the current option value:
 asio::ip::udp::socket socket(io_service); 
 ...
 asio::ip::multicast::enable_loopback option;
 socket.get_option(option);
 bool is_set = option.value();
Concepts:
GettableSocketOption, SettableSocketOption.

Definition at line 172 of file multicast.hpp.

typedef asio::ip::detail::socket_option::multicast_hops< IPPROTO_IP, IP_MULTICAST_TTL, IPPROTO_IPV6, IPV6_MULTICAST_HOPS> asio::ip::multicast::hops

Socket option for time-to-live associated with outgoing multicast packets.

Implements the IPPROTO_IP/IP_MULTICAST_TTL socket option.

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

Definition at line 137 of file multicast.hpp.

typedef asio::ip::detail::socket_option::multicast_request< IPPROTO_IP, IP_ADD_MEMBERSHIP, IPPROTO_IPV6, IPV6_JOIN_GROUP> asio::ip::multicast::join_group

Socket option to join a multicast group on a specified interface.

Implements the IPPROTO_IP/IP_ADD_MEMBERSHIP socket option.

Examples
Setting the option to join a multicast group:
 asio::ip::udp::socket socket(io_service); 
 ...
 asio::ip::address multicast_address =
   asio::ip::address::from_string("225.0.0.1");
 asio::ip::multicast::join_group option(multicast_address);
 socket.set_option(option);
Concepts:
SettableSocketOption.

Definition at line 53 of file multicast.hpp.

typedef asio::ip::detail::socket_option::multicast_request< IPPROTO_IP, IP_DROP_MEMBERSHIP, IPPROTO_IPV6, IPV6_LEAVE_GROUP> asio::ip::multicast::leave_group

Socket option to leave a multicast group on a specified interface.

Implements the IPPROTO_IP/IP_DROP_MEMBERSHIP socket option.

Examples
Setting the option to leave a multicast group:
 asio::ip::udp::socket socket(io_service); 
 ...
 asio::ip::address multicast_address =
   asio::ip::address::from_string("225.0.0.1");
 asio::ip::multicast::leave_group option(multicast_address);
 socket.set_option(option);
Concepts:
SettableSocketOption.

Definition at line 78 of file multicast.hpp.

typedef asio::ip::detail::socket_option::network_interface< IPPROTO_IP, IP_MULTICAST_IF, IPPROTO_IPV6, IPV6_MULTICAST_IF> asio::ip::multicast::outbound_interface

Socket option for local interface to use for outgoing multicast packets.

Implements the IPPROTO_IP/IP_MULTICAST_IF socket option.

Examples
Setting the option:
 asio::ip::udp::socket socket(io_service); 
 ...
 asio::ip::address_v4 local_interface =
   asio::ip::address_v4::from_string("1.2.3.4");
 asio::ip::multicast::outbound_interface option(local_interface);
 socket.set_option(option);
Concepts:
SettableSocketOption.

Definition at line 104 of file multicast.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