/* * 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 #include #include "Swiften/SwiftenCompat.h" namespace Swift { DummyConnectionServer::DummyConnectionServer(EventLoop* eventLoop) : eventLoop(eventLoop) { } void DummyConnectionServer::start() { } void DummyConnectionServer::stop() { } void DummyConnectionServer::acceptConnection(SWIFTEN_SHRPTR_NAMESPACE::shared_ptr connection) { eventLoop->postEvent( boost::bind(boost::ref(onNewConnection), connection)); // connection->listen(); } HostAddressPort DummyConnectionServer::getAddressPort() const { return HostAddressPort(); } }