#include <dns.h>
Public Types | |
| typedef std::map< std::string, int > | HostMap |
Static Public Member Functions | |
| static HostMap | resolve (const std::string &service, const std::string &proto, const std::string &domain, const LogSink &logInstance) |
| static HostMap | resolve (const std::string &domain, const LogSink &logInstance) |
| static int | connect (const std::string &domain, const LogSink &logInstance) |
| static int | connect (const std::string &domain, unsigned short port, const LogSink &logInstance) |
| static int | getSocket () |
| static void | closeSocket (int fd) |
You should not need to use these functions directly.
Definition at line 55 of file dns.h.
|
|
A list of strings (used for server addresses) and ints (used for port numbers). |
|
|
Closes the given socket.
|
|
||||||||||||||||
|
This is a convenience function which uses connects to the given host and port. No SRV records are resolved. Use this function for special setups.
|
|
||||||||||||
|
This is a convenience function which uses resolve() to get a list of hosts and connects to one of them.
|
|
|
Prepares and returnes a simple socket.
|
|
||||||||||||
|
This is a convenience funtion which uses resolve() to resolve SRV records for a given domain, using a service of xmpp and a proto of tcp.
|
|
||||||||||||||||||||
|
This funtion resolves a service/protocol/domain tuple.
|
1.4.1