/* * Copyright (c) 2014 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include #include #include namespace Swift { class EventLoop; class DummyConnectionServerFactory : public ConnectionServerFactory { public: DummyConnectionServerFactory(EventLoop* eventLoop) : eventLoop(eventLoop) {} virtual ~DummyConnectionServerFactory() {} virtual boost::shared_ptr createConnectionServer(int port) { return boost::make_shared(eventLoop, port); } virtual boost::shared_ptr createConnectionServer(const Swift::HostAddress& hostAddress, int port) { return boost::make_shared(eventLoop, hostAddress, port); } private: EventLoop* eventLoop; }; }