/* * Copyright (c) 2010 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #include #include #include #include namespace Swift { DummyConnection::DummyConnection(EventLoop* eventLoop) : eventLoop(eventLoop) { } void DummyConnection::receive(const SafeByteArray& data) { eventLoop->postEvent(boost::bind(boost::ref(onDataRead), boost::make_shared(data)), shared_from_this()); } void DummyConnection::listen() { assert(false); } void DummyConnection::connect(const HostAddressPort&) { assert(false); } }