summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Component/ComponentConnector.h')
-rw-r--r--Swiften/Component/ComponentConnector.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Swiften/Component/ComponentConnector.h b/Swiften/Component/ComponentConnector.h
index ab36901..cfd49fe 100644
--- a/Swiften/Component/ComponentConnector.h
+++ b/Swiften/Component/ComponentConnector.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 */
@@ -28,7 +28,7 @@ namespace Swift {
28 public: 28 public:
29 typedef std::shared_ptr<ComponentConnector> ref; 29 typedef std::shared_ptr<ComponentConnector> ref;
30 30
31 static ComponentConnector::ref create(const std::string& hostname, int port, DomainNameResolver* resolver, ConnectionFactory* connectionFactory, TimerFactory* timerFactory) { 31 static ComponentConnector::ref create(const std::string& hostname, unsigned short port, DomainNameResolver* resolver, ConnectionFactory* connectionFactory, TimerFactory* timerFactory) {
32 return ref(new ComponentConnector(hostname, port, resolver, connectionFactory, timerFactory)); 32 return ref(new ComponentConnector(hostname, port, resolver, connectionFactory, timerFactory));
33 } 33 }
34 34
@@ -40,7 +40,7 @@ namespace Swift {
40 boost::signals2::signal<void (std::shared_ptr<Connection>)> onConnectFinished; 40 boost::signals2::signal<void (std::shared_ptr<Connection>)> onConnectFinished;
41 41
42 private: 42 private:
43 ComponentConnector(const std::string& hostname, int port, DomainNameResolver*, ConnectionFactory*, TimerFactory*); 43 ComponentConnector(const std::string& hostname, unsigned short port, DomainNameResolver*, ConnectionFactory*, TimerFactory*);
44 44
45 void handleAddressQueryResult(const std::vector<HostAddress>& address, boost::optional<DomainNameResolveError> error); 45 void handleAddressQueryResult(const std::vector<HostAddress>& address, boost::optional<DomainNameResolveError> error);
46 void tryNextAddress(); 46 void tryNextAddress();
@@ -53,7 +53,7 @@ namespace Swift {
53 53
54 private: 54 private:
55 std::string hostname; 55 std::string hostname;
56 int port; 56 unsigned short port;
57 DomainNameResolver* resolver; 57 DomainNameResolver* resolver;
58 ConnectionFactory* connectionFactory; 58 ConnectionFactory* connectionFactory;
59 TimerFactory* timerFactory; 59 TimerFactory* timerFactory;