From d63dd8d081a6fcd0715cd13f26df59fb831769d2 Mon Sep 17 00:00:00 2001 From: "Iain R. Learmonth" Date: Sun, 18 Oct 2015 18:51:00 +0100 Subject: Imported Upstream version 1.5.0 --- NetworkServerLookup.hpp | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 NetworkServerLookup.hpp (limited to 'NetworkServerLookup.hpp') diff --git a/NetworkServerLookup.hpp b/NetworkServerLookup.hpp new file mode 100644 index 00000000..7c7c9d11 --- /dev/null +++ b/NetworkServerLookup.hpp @@ -0,0 +1,38 @@ +#ifndef NETWORK_SERVER_LOOKUP_HPP__ +#define NETWORK_SERVER_LOOKUP_HPP__ + +#include + +#include +#include + +class QString; + +// +// Do a blocking DNS lookup using query as a destination host address +// and port. +// +// query can be one of: +// +// 1) "" (empty string) - use defaults +// 2) ":nnnnn" - override default service port with port nnnnn +// 3) "" - override default host address with DNS lookup +// 4) "nnn.nnn.nnn.nnn" - override default host address with the IPv4 address given by nnn.nnn.nnn.nnn +// 5) "[:nnnnn" - use as per (3) & (2) +// 7) "nnn.nnn.nnn.nnn:nnnnn" - use as per (4) & (2) +// 8) "[ +network_server_lookup (QString query + , quint16 default_service_port + , QHostAddress default_host_address = QHostAddress::LocalHost + , QAbstractSocket::NetworkLayerProtocol protocol = QAbstractSocket::AnyIPProtocol); + +#endif -- cgit v1.2.3