diff options
Diffstat (limited to 'Swiften/Network/Connector.h')
| -rw-r--r-- | Swiften/Network/Connector.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Swiften/Network/Connector.h b/Swiften/Network/Connector.h index d8a1b88..c76a4af 100644 --- a/Swiften/Network/Connector.h +++ b/Swiften/Network/Connector.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 | */ |
| @@ -30,7 +30,7 @@ namespace Swift { | |||
| 30 | public: | 30 | public: |
| 31 | typedef std::shared_ptr<Connector> ref; | 31 | typedef std::shared_ptr<Connector> ref; |
| 32 | 32 | ||
| 33 | static Connector::ref create(const std::string& hostname, int port, const boost::optional<std::string>& serviceLookupPrefix, DomainNameResolver* resolver, ConnectionFactory* connectionFactory, TimerFactory* timerFactory) { | 33 | static Connector::ref create(const std::string& hostname, unsigned short port, const boost::optional<std::string>& serviceLookupPrefix, DomainNameResolver* resolver, ConnectionFactory* connectionFactory, TimerFactory* timerFactory) { |
| 34 | return ref(new Connector(hostname, port, serviceLookupPrefix, resolver, connectionFactory, timerFactory)); | 34 | return ref(new Connector(hostname, port, serviceLookupPrefix, resolver, connectionFactory, timerFactory)); |
| 35 | } | 35 | } |
| 36 | 36 | ||
| @@ -46,7 +46,7 @@ namespace Swift { | |||
| 46 | boost::signals2::signal<void (std::shared_ptr<Connection>, std::shared_ptr<Error>)> onConnectFinished; | 46 | boost::signals2::signal<void (std::shared_ptr<Connection>, std::shared_ptr<Error>)> onConnectFinished; |
| 47 | 47 | ||
| 48 | private: | 48 | private: |
| 49 | Connector(const std::string& hostname, int port, const boost::optional<std::string>& serviceLookupPrefix, DomainNameResolver*, ConnectionFactory*, TimerFactory*); | 49 | Connector(const std::string& hostname, unsigned short port, const boost::optional<std::string>& serviceLookupPrefix, DomainNameResolver*, ConnectionFactory*, TimerFactory*); |
| 50 | 50 | ||
| 51 | void handleServiceQueryResult(const std::vector<DomainNameServiceQuery::Result>& result); | 51 | void handleServiceQueryResult(const std::vector<DomainNameServiceQuery::Result>& result); |
| 52 | void handleAddressQueryResult(const std::vector<HostAddress>& address, boost::optional<DomainNameResolveError> error); | 52 | void handleAddressQueryResult(const std::vector<HostAddress>& address, boost::optional<DomainNameResolveError> error); |
| @@ -63,7 +63,7 @@ namespace Swift { | |||
| 63 | 63 | ||
| 64 | private: | 64 | private: |
| 65 | std::string hostname; | 65 | std::string hostname; |
| 66 | int port; | 66 | unsigned short port; |
| 67 | boost::optional<std::string> serviceLookupPrefix; | 67 | boost::optional<std::string> serviceLookupPrefix; |
| 68 | DomainNameResolver* resolver; | 68 | DomainNameResolver* resolver; |
| 69 | ConnectionFactory* connectionFactory; | 69 | ConnectionFactory* connectionFactory; |
Swift