125 virtual bool reply(uint64_t req_id,
const Bytes& resp_data,
bool is_sync);
127 bool is_listened{
false};
128 bool is_resp_type{
false};
129 bool is_sync_type{
false};
Fixed-size 128-byte buffer holder with SBO, five ownership modes and integrated codecs.
Definition: bytes.h:120
Copyable type-erased callable analogue of std::function with a tunable SBO and pool spill.
Definition: functional.h:131
Backbone of every transport-specific VLink node implementation.
Definition: node_impl.h:163
Method-model server base shared by every transport implementation.
Definition: server_impl.h:79
virtual bool reply(uint64_t req_id, const Bytes &resp_data, bool is_sync)
Sends a response for a previously received request.
virtual bool listen(ReqRespCallback &&callback)=0
Registers the request / response handler.
ServerImpl()
Stamps the node as kServer.
virtual bool has_clients() const
Reports whether at least one client is currently connected.
~ServerImpl() override
Releases backend resources.
#define VLINK_EXPORT
Definition: macros.h:81
#define VLINK_DISALLOW_COPY_AND_ASSIGN(classname)
Deletes the copy constructor and copy-assignment operator of classname.
Definition: macros.h:174
Foundational base classes shared by every transport-backed VLink node.