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

Namespaces

namespace  detail
namespace  multicast
namespace  unicast

Classes

class  address
 Implements version-independent IP addresses. More...
class  address_v4
 Implements IP version 4 style addresses. More...
class  address_v6
 Implements IP version 6 style addresses. More...
class  basic_endpoint
 Describes an endpoint for a version-independent IP socket. More...
class  basic_resolver
 Provides endpoint resolution functionality. More...
class  basic_resolver_entry
 An entry produced by a resolver. More...
class  basic_resolver_iterator
 An iterator over the entries produced by a resolver. More...
class  basic_resolver_query
 An query to be passed to a resolver. More...
class  icmp
 Encapsulates the flags needed for ICMP. More...
class  resolver_query_base
class  resolver_service
 Default service implementation for a resolver. More...
class  tcp
 Encapsulates the flags needed for TCP. More...
class  udp
 Encapsulates the flags needed for UDP. More...

Typedefs

typedef
asio::detail::socket_option::boolean
< asio::detail::custom_socket_option_level,
asio::detail::always_fail_option
v6_only

Functions

std::string host_name ()
 Get the current host name.
std::string host_name (asio::error_code &ec)
 Get the current host name.

Typedef Documentation

Socket option for determining whether an IPv6 socket supports IPv6 communication only. Implements the IPPROTO_IPV6/IP_V6ONLY socket option.

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

Definition at line 60 of file v6_only.hpp.


Function Documentation

std::string asio::ip::host_name ( ) [inline]

Get the current host name.

Definition at line 37 of file host_name.hpp.

std::string asio::ip::host_name ( asio::error_code ec) [inline]

Get the current host name.

Definition at line 49 of file host_name.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