diff options
| author | Christoph Berg <myon@debian.org> | 2020-05-11 22:18:20 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2020-05-11 22:18:20 +0200 |
| commit | a8edac06b534058e52126c4d55e23b217df2df91 (patch) | |
| tree | f2c3567fae58aad676d544ee8f07ac78dd2eb1ec /NetworkServerLookup.hpp | |
| parent | 4f6c0156a70e8f2ff70fe5a1a39f5e9b22ffd026 (diff) | |
| parent | 32a41b1abe1a4aab0892c9c2051be6ba5b379f1e (diff) | |
Update upstream source from tag 'upstream/2.2.0_rc1+repack'
Update to upstream version '2.2.0~rc1+repack'
with Debian dir fe177bc6cd2d4c1256a3775504f6010be54e7463
Diffstat (limited to 'NetworkServerLookup.hpp')
| -rw-r--r-- | NetworkServerLookup.hpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/NetworkServerLookup.hpp b/NetworkServerLookup.hpp deleted file mode 100644 index 7c7c9d11..00000000 --- a/NetworkServerLookup.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef NETWORK_SERVER_LOOKUP_HPP__ -#define NETWORK_SERVER_LOOKUP_HPP__ - -#include <tuple> - -#include <QHostAddress> -#include <QAbstractSocket> - -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) "<valid-host-name>" - 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) "[<valid-IPv6-address]" - override default host address with the given IPv6 address -// 6) "<valid-host-name>:nnnnn" - use as per (3) & (2) -// 7) "nnn.nnn.nnn.nnn:nnnnn" - use as per (4) & (2) -// 8) "[<valid-IPv6-address]:nnnnn" - use as per (5) & (2) -// -// The first host address matching the protocol and the service port -// number are returned. -// -// If no suitable host address is found QHostAddress::Null will be -// returned in the first member of the result tuple. -// -std::tuple<QHostAddress, quint16> -network_server_lookup (QString query - , quint16 default_service_port - , QHostAddress default_host_address = QHostAddress::LocalHost - , QAbstractSocket::NetworkLayerProtocol protocol = QAbstractSocket::AnyIPProtocol); - -#endif |
