Class AsyncSubscriber
Defined in File async_subscriber.h
Inheritance Relationships
Base Type
public O3DS::AsyncNngConnector(Class AsyncNngConnector)
Class Documentation
-
class AsyncSubscriber : public O3DS::AsyncNngConnector
Implementation of nng sub pattern, to connect to a publisher.
Public Functions
-
virtual bool start(const char *url)
Start the server using the provided url - usually starts with tcp://.
-
inline void callback_()
-
void pipeEvent_(nng_pipe pipe, nng_pipe_ev pipe_ev)
-
inline bool listen(const char *url)
-
inline virtual bool write(const char *data, size_t ptr)
Writes an nng message.
Public Members
-
std::atomic<bool> connected = {false}
-
virtual bool start(const char *url)