diff options
Diffstat (limited to 'Swiften/Network/BoostConnection.h')
| -rw-r--r-- | Swiften/Network/BoostConnection.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Swiften/Network/BoostConnection.h b/Swiften/Network/BoostConnection.h index d238a3f..83a8f01 100644 --- a/Swiften/Network/BoostConnection.h +++ b/Swiften/Network/BoostConnection.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010 Isode Limited. | 2 | * Copyright (c) 2010-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 |
| @@ -10,13 +10,13 @@ | |||
| 10 | #include <boost/asio/ip/tcp.hpp> | 10 | #include <boost/asio/ip/tcp.hpp> |
| 11 | #include <boost/enable_shared_from_this.hpp> | 11 | #include <boost/enable_shared_from_this.hpp> |
| 12 | #include <boost/thread/mutex.hpp> | 12 | #include <boost/thread/mutex.hpp> |
| 13 | 13 | ||
| 14 | #include <Swiften/Base/API.h> | 14 | #include <Swiften/Base/API.h> |
| 15 | #include <Swiften/Network/Connection.h> | ||
| 16 | #include <Swiften/EventLoop/EventOwner.h> | ||
| 17 | #include <Swiften/Base/SafeByteArray.h> | 15 | #include <Swiften/Base/SafeByteArray.h> |
| 16 | #include <Swiften/EventLoop/EventOwner.h> | ||
| 17 | #include <Swiften/Network/Connection.h> | ||
| 18 | 18 | ||
| 19 | namespace boost { | 19 | namespace boost { |
| 20 | class thread; | 20 | class thread; |
| 21 | namespace system { | 21 | namespace system { |
| 22 | class error_code; | 22 | class error_code; |
| @@ -28,11 +28,11 @@ namespace Swift { | |||
| 28 | 28 | ||
| 29 | class SWIFTEN_API BoostConnection : public Connection, public EventOwner, public boost::enable_shared_from_this<BoostConnection> { | 29 | class SWIFTEN_API BoostConnection : public Connection, public EventOwner, public boost::enable_shared_from_this<BoostConnection> { |
| 30 | public: | 30 | public: |
| 31 | typedef boost::shared_ptr<BoostConnection> ref; | 31 | typedef boost::shared_ptr<BoostConnection> ref; |
| 32 | 32 | ||
| 33 | ~BoostConnection(); | 33 | virtual ~BoostConnection(); |
| 34 | 34 | ||
| 35 | static ref create(boost::shared_ptr<boost::asio::io_service> ioService, EventLoop* eventLoop) { | 35 | static ref create(boost::shared_ptr<boost::asio::io_service> ioService, EventLoop* eventLoop) { |
| 36 | return ref(new BoostConnection(ioService, eventLoop)); | 36 | return ref(new BoostConnection(ioService, eventLoop)); |
| 37 | } | 37 | } |
| 38 | 38 | ||
Swift