diff options
Diffstat (limited to 'Swiften/Network/ChainedConnector.h')
| -rw-r--r-- | Swiften/Network/ChainedConnector.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Swiften/Network/ChainedConnector.h b/Swiften/Network/ChainedConnector.h index 77fa6fd..9bcc961 100644 --- a/Swiften/Network/ChainedConnector.h +++ b/Swiften/Network/ChainedConnector.h | |||
| @@ -1,22 +1,23 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2011 Isode Limited. | 2 | * Copyright (c) 2011-2015 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 | */ |
| 6 | 6 | ||
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include <deque> | ||
| 9 | #include <string> | 10 | #include <string> |
| 10 | #include <vector> | 11 | #include <vector> |
| 11 | #include <deque> | 12 | |
| 12 | #include <boost/shared_ptr.hpp> | ||
| 13 | #include <boost/optional.hpp> | 13 | #include <boost/optional.hpp> |
| 14 | #include <boost/shared_ptr.hpp> | ||
| 14 | 15 | ||
| 15 | #include <Swiften/Base/API.h> | 16 | #include <Swiften/Base/API.h> |
| 16 | #include <Swiften/Base/boost_bsignals.h> | ||
| 17 | #include <Swiften/Base/Error.h> | 17 | #include <Swiften/Base/Error.h> |
| 18 | #include <Swiften/Base/boost_bsignals.h> | ||
| 18 | 19 | ||
| 19 | namespace Swift { | 20 | namespace Swift { |
| 20 | class Connection; | 21 | class Connection; |
| 21 | class Connector; | 22 | class Connector; |
| 22 | class ConnectionFactory; | 23 | class ConnectionFactory; |
| @@ -24,10 +25,11 @@ namespace Swift { | |||
| 24 | class DomainNameResolver; | 25 | class DomainNameResolver; |
| 25 | 26 | ||
| 26 | class SWIFTEN_API ChainedConnector { | 27 | class SWIFTEN_API ChainedConnector { |
| 27 | public: | 28 | public: |
| 28 | ChainedConnector(const std::string& hostname, int port, const boost::optional<std::string>& serviceLookupPrefix, DomainNameResolver*, const std::vector<ConnectionFactory*>&, TimerFactory*); | 29 | ChainedConnector(const std::string& hostname, int port, const boost::optional<std::string>& serviceLookupPrefix, DomainNameResolver*, const std::vector<ConnectionFactory*>&, TimerFactory*); |
| 30 | ~ChainedConnector(); | ||
| 29 | 31 | ||
| 30 | void setTimeoutMilliseconds(int milliseconds); | 32 | void setTimeoutMilliseconds(int milliseconds); |
| 31 | void start(); | 33 | void start(); |
| 32 | void stop(); | 34 | void stop(); |
| 33 | 35 | ||
Swift