#include <connection.h>
Public Types | |
using | Ptr = std::shared_ptr< Connection > |
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 Types | |
using | CallbackClose = boost::function< void(void)> |
using | CallbackConnect = boost::function< void(void)> |
using | CallbackReceive = boost::function< void(boost::asio::streambuf &, const boost::posix_time::ptime &)> |
using | CallbackSend = boost::function< void(const boost::posix_time::ptime &)> |
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 31 of file connection.h.
|
protected |
Definition at line 37 of file connection.h.
|
protected |
Definition at line 36 of file connection.h.
|
protected |
Definition at line 39 of file connection.h.
|
protected |
Definition at line 41 of file connection.h.
using scip2::Connection::Ptr = std::shared_ptr<Connection> |
Definition at line 66 of file connection.h.
|
inline |
Definition at line 85 of file connection.h.
|
inlineprotected |
Definition at line 47 of file connection.h.
|
inlineprotected |
Definition at line 52 of file connection.h.
|
inlineprotected |
Definition at line 57 of file connection.h.
|
inline |
Definition at line 73 of file connection.h.
|
inline |
Definition at line 81 of file connection.h.
|
inline |
Definition at line 77 of file connection.h.
|
pure virtual |
Implemented in scip2::ConnectionTcp.
|
pure virtual |
Implemented in scip2::ConnectionTcp.
|
pure virtual |
Implemented in scip2::ConnectionTcp.
|
pure virtual |
Implemented in scip2::ConnectionTcp.
|
friend |
Definition at line 33 of file connection.h.
|
protected |
Definition at line 44 of file connection.h.
|
protected |
Definition at line 43 of file connection.h.
|
protected |
Definition at line 45 of file connection.h.