3 * Author: Lukas Krejci <krejci.l@centrum.cz>, (C) 2008
4 * Copyright: See COPYING file that comes with this distribution
7 #ifndef BEACON_connection_impl_base_H
8 #define BEACON_connection_impl_base_H
10 #include <beacon/config.hpp>
11 #include <beacon/reference_countable.hpp>
18 * Base class for connection implementation.
19 * Defines the minimal interface that the connection
20 * implementation supports.
22 class connection_impl_base
: public reference_countable
{
25 virtual void disconnect() = 0;
26 virtual bool connected() const = 0;
28 #ifdef ENABLE_CONNECTION_BLOCKING
29 virtual bool blocked() const = 0;