#include <address_resolver.hpp>
Public Types | |
typedef P::peer | peer |
Public Member Functions | |
address_resolver ()=default | |
std::vector< peer > | resolve (const std::string &hostname, const std::string &port) |
std::vector< peer > | resolve (const char *hostname, const char *port) |
The address resolver resolves a given host and port to a peer object representing the given address
P | Type of protocol |
typedef P::peer address_resolver< P >::peer |
Shortcut to peer type
|
default |
Default constructor
std::vector< peer > address_resolver< P >::resolve | ( | const char * | hostname, |
const char * | port | ||
) |
Resolves the given host and port to a list of valid peers representing the ip addresses of the host either in IPv4 or IPv6 format
hostname | Hostname to resolve |
port | Port to resolve |
std::vector< peer > address_resolver< P >::resolve | ( | const std::string & | hostname, |
const std::string & | port | ||
) |
Resolves the given host and port to a list of valid peers representing the ip addresses of the host either in IPv4 or IPv6 format
hostname | Hostname to resolve |
port | Port to resolve |