Files
@ 882d7b2f02ff
Branch filter:
Location: libtransport.git/include/Swiften/Network/DummyConnectionServer.h - annotation
882d7b2f02ff
1.2 KiB
text/plain
Load skype buddies from database if it's possible
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 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.
*/
#pragma once
#include <boost/shared_ptr.hpp>
#include <boost/asio/io_service.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <Swiften/Base/boost_bsignals.h>
#include <Swiften/Network/DummyConnection.h>
#include <Swiften/Network/ConnectionServer.h>
#include <Swiften/EventLoop/EventOwner.h>
namespace Swift {
class DummyConnectionServer : public ConnectionServer, public EventOwner, public boost::enable_shared_from_this<DummyConnectionServer> {
public:
typedef boost::shared_ptr<DummyConnectionServer> ref;
enum Error {
Conflict,
UnknownError
};
static ref create(EventLoop* eventLoop) {
return ref(new DummyConnectionServer(eventLoop));
}
void acceptConnection(boost::shared_ptr<Connection> connection);
virtual void start();
virtual void stop();
virtual HostAddressPort getAddressPort() const;
private:
DummyConnectionServer(EventLoop* eventLoop);
private:
HostAddress address_;
EventLoop* eventLoop;
};
}
|