libpalliate v0.0.1
Palliate core library
|
#include <client.h>
Public Member Functions | |
Client (int _fd, bool _packed=false) | |
Client (const char *host, unsigned port, bool _packed=false) | |
~Client () override | |
void | send (capnp::MessageBuilder *message) override |
reader_t | recv () override |
![]() | |
Client (std::string const &_name, bool _packed=false) | |
~Client () override | |
bool | loop () final |
virtual void | send (capnp::MessageBuilder *message)=0 |
virtual reader_t | recv ()=0 |
![]() | |
runnable (std::string const &_name) | |
virtual | ~runnable () |
virtual void | operator() (std::stop_token token={}) |
void | run () |
void | run (callback_f _callback) |
void | stop () |
auto | operator<=> (runnable const &other) const |
Additional Inherited Members | |
![]() | |
using | callback_f = std::function< void()> |
using | callback_t = std::stop_callback< callback_f > |
![]() | |
std::function< void(Client *, reader_t)> | message_event |
![]() | |
virtual bool | setup () |
virtual bool | loop ()=0 |
![]() | |
bool | packed |
![]() | |
std::jthread | thread |
std::unique_ptr< callback_t > | callback |
|
explicit |
Client::Client | ( | const char * | host, |
unsigned | port, | ||
bool | _packed = false |
||
) |
|
override |
|
overridevirtual |
Implements transport::Client.
|
overridevirtual |
Implements transport::Client.