Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

ss::resolver Class Reference
[Name Resolution]

Encapsulates name resolution services. More...

#include <resolver.h>

Collaboration diagram for ss::resolver:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 resolver ()
 Default constructor.
 ~resolver ()
 Destructor.
resolverfamily (sockets_base::family value)
 Set family hint.
resolverstyle (sockets_base::style value)
 Set socket style hint.
resolverflags (int value)
 Set resolver flags.
void reset ()
 Reset resolver.
void resolve (char const *host, char const *service)
 Resolves host and service names.
resolver_result const & result () const
 Resolved addresses.

Detailed Description

Encapsulates name resolution services.

Definition at line 255 of file resolver.h.


Constructor & Destructor Documentation

ss::resolver::resolver  ) 
 

Default constructor.

Allocates resources.

ss::resolver::~resolver  ) 
 

Destructor.

Frees resources.


Member Function Documentation

resolver& ss::resolver::family sockets_base::family  value  ) 
 

Set family hint.

Parameters:
value Family code to hint at.

resolver& ss::resolver::flags int  value  ) 
 

Set resolver flags.

Parameters:
value Resolver flags.

void ss::resolver::reset  ) 
 

Reset resolver.

This resets every hint to it's default state.

void ss::resolver::resolve char const *  host,
char const *  service
 

Resolves host and service names.

Parameters:
host Name of host.
service Name of service.
There must be at least host or service non-null.

resolver_result const& ss::resolver::result  )  const [inline]
 

Resolved addresses.

A linked list of results from the name service.

Definition at line 316 of file resolver.h.

resolver& ss::resolver::style sockets_base::style  value  ) 
 

Set socket style hint.

Parameters:
value Style code to hint at.


The documentation for this class was generated from the following file:
Generated on Sat May 21 21:25:51 2005 for Socket Streams Library by  doxygen 1.4.3