basic implementation of fast_signal, enqueueing in the event_loop doesn't work yet.
[beacon-ss.git] / beacon / detail / connection_impl_base.hpp
blob884202067ee6f8236bd4f218587829c006fc3238
1 /**
2 * beacon
3 * Author: Lukas Krejci <krejci.l@centrum.cz>, (C) 2008
4 * Copyright: See COPYING file that comes with this distribution
5 */
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>
13 namespace beacon {
15 namespace detail {
17 /**
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 {
24 public:
25 virtual void disconnect() = 0;
26 virtual bool connected() const = 0;
28 #ifdef ENABLE_CONNECTION_BLOCKING
29 virtual bool blocked() const = 0;
30 #endif
33 } //namespace detail
35 } //namespace beacon
37 #endif