abstract connection handler to process incoming data (independent of protocol) More...
#include <network.h>
Public Types | |
typedef boost::signals2::signal< void(const char *data, const size_t size, Any_Session *writer) | SIG_ON_DATA ) |
incoming data with "data" of size "size" and handler to write back ("writer") | |
Public Member Functions | |
Any_Session (SIG_ON_DATA &cb) | |
every session needs a data handler | |
virtual void | write (const std::string &buffer)=0 |
write a string to the network connection | |
virtual | ~Any_Session () |
Protected Attributes | |
SIG_ON_DATA & | on_data_ |
signal handler for incoming data |
abstract connection handler to process incoming data (independent of protocol)
typedef boost::signals2::signal<void (const char *data, const size_t size, Any_Session *writer) Any_Session::SIG_ON_DATA) |
Any_Session::Any_Session | ( | SIG_ON_DATA & | cb | ) | [inline] |
virtual Any_Session::~Any_Session | ( | ) | [inline, virtual] |
virtual void Any_Session::write | ( | const std::string & | buffer | ) | [pure virtual] |
write a string to the network connection
Implemented in TCP_Session.
SIG_ON_DATA& Any_Session::on_data_ [protected] |
signal handler for incoming data
Reimplemented in Driver_3DCS::Streaming, Streaming, Driver_3DCS::Control, and Control.