diff options
Diffstat (limited to 'Swiften/Network/DomainNameServiceQuery.h')
| -rw-r--r-- | Swiften/Network/DomainNameServiceQuery.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Swiften/Network/DomainNameServiceQuery.h b/Swiften/Network/DomainNameServiceQuery.h index b27f32e..1631b99 100644 --- a/Swiften/Network/DomainNameServiceQuery.h +++ b/Swiften/Network/DomainNameServiceQuery.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2016 Isode Limited. | 2 | * Copyright (c) 2010-2018 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -24,9 +24,9 @@ namespace Swift { | |||
| 24 | typedef std::shared_ptr<DomainNameServiceQuery> ref; | 24 | typedef std::shared_ptr<DomainNameServiceQuery> ref; |
| 25 | 25 | ||
| 26 | struct Result { | 26 | struct Result { |
| 27 | Result(const std::string& hostname = "", int port = -1, int priority = -1, int weight = -1) : hostname(hostname), port(port), priority(priority), weight(weight) {} | 27 | Result(const std::string& hostname = "", unsigned short port = 0, int priority = -1, int weight = -1) : hostname(hostname), port(port), priority(priority), weight(weight) {} |
| 28 | std::string hostname; | 28 | std::string hostname; |
| 29 | int port; | 29 | unsigned short port; |
| 30 | int priority; | 30 | int priority; |
| 31 | int weight; | 31 | int weight; |
| 32 | }; | 32 | }; |
Swift