Files
@ d6dbdac7733b
Branch filter:
Location: libtransport.git/include/Swiften/Network/DummyConnectionServer.cpp - annotation
d6dbdac7733b
883 B
text/x-c++hdr
Fix registration crash
config should be usernames, not usernanames
config should be usernames, not usernanames
75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 75bc454c85c2 | /*
* Copyright (c) 2010 Remko Tronçon
* Licensed under the GNU General Public License v3.
* See Documentation/Licenses/GPLv3.txt for more information.
*/
#include <Swiften/Network/DummyConnectionServer.h>
#include <boost/bind.hpp>
#include <boost/system/system_error.hpp>
#include <boost/asio/placeholders.hpp>
#include <Swiften/EventLoop/EventLoop.h>
namespace Swift {
DummyConnectionServer::DummyConnectionServer(EventLoop* eventLoop) : eventLoop(eventLoop) {
}
void DummyConnectionServer::start() {
}
void DummyConnectionServer::stop() {
}
void DummyConnectionServer::acceptConnection(boost::shared_ptr<Connection> connection) {
eventLoop->postEvent(
boost::bind(boost::ref(onNewConnection), connection),
shared_from_this());
// connection->listen();
}
HostAddressPort DummyConnectionServer::getAddressPort() const {
return HostAddressPort();
}
}
|