#include <swcdb/db/Protocol/Mngr/req/Echo.h>
Public Types | |
typedef std::function< void(bool)> | EchoCb_t |
Public Types inherited from SWC::Comm::DispatchHandler | |
typedef std::shared_ptr< DispatchHandler > | Ptr |
Public Member Functions | |
Echo (const ConnHandlerPtr &a_conn, EchoCb_t &&a_cb, size_t buf_sz=0) | |
virtual | ~Echo () noexcept |
bool | run () override |
void | handle_no_conn () override |
void | handle (ConnHandlerPtr, const Event::Ptr &ev) override |
Public Member Functions inherited from SWC::Comm::DispatchHandler | |
virtual bool | valid () |
Private Attributes | |
ConnHandlerPtr | conn |
EchoCb_t | cb |
Buffers::Ptr | cbp |
Additional Inherited Members | |
Protected Member Functions inherited from SWC::Comm::DispatchHandler | |
virtual | ~DispatchHandler () noexcept |
typedef std::function<void(bool)> SWC::Comm::Protocol::Mngr::Req::Echo::EchoCb_t |
|
inline |
Definition at line 19 of file Echo.h.
References SWC::Core::Buffer< T >::base, cbp, SWC::Comm::Protocol::Mngr::DO_ECHO, and SWC::Comm::Buffers::make().
|
inlinevirtualnoexcept |
|
inlineoverridevirtual |
Implements SWC::Comm::DispatchHandler.
Definition at line 55 of file Echo.h.
References cb, and SWC::Comm::Protocol::Mngr::DO_ECHO.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Reimplemented from SWC::Comm::DispatchHandler.
|
private |
Definition at line 63 of file Echo.h.
Referenced by handle(), and handle_no_conn().
|
private |
|
private |