#include <protocol.h>
Public Member Functions | |
| Protocol (Connection::Ptr connection) | |
| template<typename TResponse > | |
| void | registerCallback (typename TResponse::Callback cb) |
| void | sendCommand (const std::string &command, Connection::CallbackSend cb=Connection::CallbackSend()) |
Protected Member Functions | |
| void | cbReceive (boost::asio::streambuf &buf, const boost::posix_time::ptime &time_read) |
Protected Attributes | |
| Connection::Ptr | connection_ |
| ResponseProcessor | response_processor_ |
Definition at line 31 of file protocol.h.
| scip2::Protocol::Protocol | ( | Connection::Ptr | connection | ) | [inline, explicit] |
Definition at line 67 of file protocol.h.
| void scip2::Protocol::cbReceive | ( | boost::asio::streambuf & | buf, |
| const boost::posix_time::ptime & | time_read | ||
| ) | [inline, protected] |
Definition at line 37 of file protocol.h.
| void scip2::Protocol::registerCallback | ( | typename TResponse::Callback | cb | ) | [inline] |
Definition at line 82 of file protocol.h.
| void scip2::Protocol::sendCommand | ( | const std::string & | command, |
| Connection::CallbackSend | cb = Connection::CallbackSend() |
||
| ) | [inline] |
Definition at line 74 of file protocol.h.
Connection::Ptr scip2::Protocol::connection_ [protected] |
Definition at line 34 of file protocol.h.
Definition at line 35 of file protocol.h.