#include <connection.h>
Public Member Functions | |
Connection () | |
void | registerCloseCallback (CallbackClose cb) |
void | registerConnectCallback (CallbackConnect cb) |
void | registerReceiveCallback (CallbackReceive cb) |
virtual void | send (const std::string &, CallbackSend=CallbackSend())=0 |
virtual void | spin ()=0 |
virtual void | startWatchdog (const boost::posix_time::time_duration &)=0 |
virtual void | stop ()=0 |
Protected Member Functions | |
void | close () |
void | connect () |
void | receive (boost::asio::streambuf &buf, const boost::posix_time::ptime &time_read) |
Protected Attributes | |
CallbackClose | cb_close_ |
CallbackConnect | cb_connect_ |
CallbackReceive | cb_receive_ |
Friends | |
class | Protocol |
Definition at line 28 of file connection.h.
scip2::Connection::Connection | ( | ) | [inline] |
Definition at line 82 of file connection.h.
void scip2::Connection::close | ( | ) | [inline, protected] |
Definition at line 44 of file connection.h.
void scip2::Connection::connect | ( | ) | [inline, protected] |
Definition at line 49 of file connection.h.
void scip2::Connection::receive | ( | boost::asio::streambuf & | buf, |
const boost::posix_time::ptime & | time_read | ||
) | [inline, protected] |
Definition at line 54 of file connection.h.
void scip2::Connection::registerCloseCallback | ( | CallbackClose | cb | ) | [inline] |
Definition at line 70 of file connection.h.
void scip2::Connection::registerConnectCallback | ( | CallbackConnect | cb | ) | [inline] |
Definition at line 78 of file connection.h.
void scip2::Connection::registerReceiveCallback | ( | CallbackReceive | cb | ) | [inline] |
Definition at line 74 of file connection.h.
virtual void scip2::Connection::send | ( | const std::string & | , |
CallbackSend | = CallbackSend() |
||
) | [pure virtual] |
Implemented in scip2::ConnectionTcp.
virtual void scip2::Connection::spin | ( | ) | [pure virtual] |
Implemented in scip2::ConnectionTcp.
virtual void scip2::Connection::startWatchdog | ( | const boost::posix_time::time_duration & | ) | [pure virtual] |
Implemented in scip2::ConnectionTcp.
virtual void scip2::Connection::stop | ( | ) | [pure virtual] |
Implemented in scip2::ConnectionTcp.
friend class Protocol [friend] |
Definition at line 30 of file connection.h.
CallbackClose scip2::Connection::cb_close_ [protected] |
Definition at line 41 of file connection.h.
CallbackConnect scip2::Connection::cb_connect_ [protected] |
Definition at line 40 of file connection.h.
CallbackReceive scip2::Connection::cb_receive_ [protected] |
Definition at line 42 of file connection.h.