#include <resolver.h>
Static Public Member Functions | |
| static Address * | getAddressByFQDN (std::string &addr, bool resolve=true) |
| static SocketAddress * | getSocketAddressByService (const std::string &fqdn, const std::string &port, int type=SOCK_STREAM, int af=AF_UNSPEC, bool resolve=false) |
| static SocketAddress * | getSocketAddressByService (const std::string &fqdn, const int port, int type=SOCK_STREAM, int af=AF_UNSPEC, bool resolve=false) |
| static SocketAddress * | getSocketAddressByService (const Address &addr, const int port, int type=SOCK_STREAM) |
| static std::string & | getFQDNbyAddress (Address &addr) |
| static Address & | getAddressByName (std::string &name, bool resolve=false) |
Definition at line 18 of file resolver.h.
| 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().


| 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().

1.5.5