diff options
Diffstat (limited to 'Swiften/Network/BoostConnectionServer.h')
| -rw-r--r-- | Swiften/Network/BoostConnectionServer.h | 12 | 
1 files changed, 5 insertions, 7 deletions
| diff --git a/Swiften/Network/BoostConnectionServer.h b/Swiften/Network/BoostConnectionServer.h index 56dc8bd..3ad0450 100644 --- a/Swiften/Network/BoostConnectionServer.h +++ b/Swiften/Network/BoostConnectionServer.h @@ -11,20 +11,17 @@  #include <boost/asio/ip/tcp.hpp>  #include <boost/enable_shared_from_this.hpp> -#include <Swiften/Base/boost_bsignals.h> +#include <Swiften/Base/API.h> +#include <Swiften/Base/boost_bsignals.h>  #include <Swiften/Network/BoostConnection.h>  #include <Swiften/Network/ConnectionServer.h>  #include <Swiften/EventLoop/EventOwner.h> +#include <boost/optional/optional_fwd.hpp>  namespace Swift { -	class BoostConnectionServer : public ConnectionServer, public EventOwner, public boost::enable_shared_from_this<BoostConnectionServer> { +	class SWIFTEN_API BoostConnectionServer : public ConnectionServer, public EventOwner, public boost::enable_shared_from_this<BoostConnectionServer> {  		public:  			typedef boost::shared_ptr<BoostConnectionServer> ref; -			enum Error { -				Conflict, -				UnknownError -			}; -  			static ref create(int port, boost::shared_ptr<boost::asio::io_service> ioService, EventLoop* eventLoop) {  				return ref(new BoostConnectionServer(port, ioService, eventLoop)); @@ -35,4 +32,5 @@ namespace Swift {  			} +			virtual boost::optional<Error> tryStart(); // FIXME: This should become the new start  			virtual void start();  			virtual void stop(); | 
 Swift
 Swift