diff --git a/include/Swiften/Network/DummyConnectionServer.cpp b/include/Swiften/Network/DummyConnectionServer.cpp new file mode 100644 index 0000000000000000000000000000000000000000..7250dce3edf07796745807b95b55857ce8a37bcc --- /dev/null +++ b/include/Swiften/Network/DummyConnectionServer.cpp @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2010 Remko Tronçon + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#include + +#include +#include +#include + +#include + +namespace Swift { + +DummyConnectionServer::DummyConnectionServer(EventLoop* eventLoop) : eventLoop(eventLoop) { +} + +void DummyConnectionServer::start() { +} + + +void DummyConnectionServer::stop() { + +} + +void DummyConnectionServer::acceptConnection(boost::shared_ptr connection) { + eventLoop->postEvent( + boost::bind(boost::ref(onNewConnection), connection), + shared_from_this()); +// connection->listen(); +} + + +HostAddressPort DummyConnectionServer::getAddressPort() const { + return HostAddressPort(); +} + +}