#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 &host, const LogSink &logInstance) |
| static int | connect (const std::string &host, 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 61 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 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.
|
|
|
A convenience function that prepares and returnes a simple, unconnected TCP socket.
|
|
||||||||||||
|
This is a convenience funtion which uses resolve() to resolve SRV records for a given domain, using a service of xmpp-client and a proto of tcp.
|
|
||||||||||||||||||||
|
This function resolves a service/protocol/domain tuple.
|
1.4.1