n2nc::net::Resolver Class Reference

This class provides various utilities to help about dns name resolver. More...

#include <resolver.h>

List of all members.

Static Public Member Functions

static AddressgetAddressByFQDN (std::string &addr, bool resolve=true)
static SocketAddressgetSocketAddressByService (const std::string &fqdn, const std::string &port, int type=SOCK_STREAM, int af=AF_UNSPEC, bool resolve=false)
static SocketAddressgetSocketAddressByService (const std::string &fqdn, const int port, int type=SOCK_STREAM, int af=AF_UNSPEC, bool resolve=false)
static SocketAddressgetSocketAddressByService (const Address &addr, const int port, int type=SOCK_STREAM)
static std::string & getFQDNbyAddress (Address &addr)
static AddressgetAddressByName (std::string &name, bool resolve=false)


Detailed Description

This class provides various utilities to help about dns name resolver.

Author:
fabsoft <fabsoft@gmail.com>

Definition at line 18 of file resolver.h.


Member Function Documentation

Address * n2nc::net::Resolver::getAddressByFQDN ( std::string &  addr,
bool  resolve = true 
) [static]

a new Address

Definition at line 12 of file resolver.cpp.

References n2nc::net::Address::toString().

Referenced by n2nc::net::Address::newAddress().

Here is the call graph for this function:

Here is the caller graph for this function:

SocketAddress * n2nc::net::Resolver::getSocketAddressByService ( const std::string &  fqdn,
const std::string &  port,
int  type = SOCK_STREAM,
int  af = AF_UNSPEC,
bool  resolve = false 
) [static]

FIXME address family can be detected by address

Definition at line 93 of file resolver.cpp.

Referenced by ThreadTest::entry_point(), and n2nc::Server::listen().

Here is the caller graph for this function:


The documentation for this class was generated from the following files:

Generated on Mon Oct 6 19:32:43 2008 for n2nc by  doxygen 1.5.5