|
SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
|
Go to the documentation of this file.
7 #ifndef swcdb_core_comm_Event_h
8 #define swcdb_core_comm_Event_h
18 namespace SWC {
namespace Comm {
25 explicit Event(
int a_error) noexcept
33 typedef std::shared_ptr<Event>
Ptr;
51 bool expired(int64_t within=0) const noexcept {
57 void print(std::ostream& out) const;
85 <<
"decode, REQUEST ENCODER_DECODE: n(" <<
int(n) <<
") ";
96 #ifdef SWC_IMPL_SOURCE
100 #endif // swcdb_core_comm_Event_h
#define SWC_LOG_OUT(pr, _code_)
SWC_CAN_INLINE Event(int a_error) noexcept
void print(std::ostream &out) const
StaticBuffer data
Primary data buffer.
StaticBuffer data_ext
Extended buffer.
int32_t response_code() const noexcept
SWC_CAN_INLINE void received() noexcept
The SWC-DB C++ namespace 'SWC'.
SWC_CAN_INLINE void decode(const uint8_t **bufp, size_t *remainp)
SWC_CAN_INLINE void free() noexcept
static SWC_CAN_INLINE Ptr make(int error)
SWC_CAN_INLINE int64_t now_ms() noexcept
std::shared_ptr< Event > Ptr
SWC_CAN_INLINE bool expired(int64_t within=0) const noexcept
@ REQUEST_TRUNCATED_PAYLOAD