Class AsyncSubscriber

Inheritance Relationships

Base Type

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}

Public Static Functions

static inline void callback(void *ref)
static inline void pipeEvent(nng_pipe pipe, nng_pipe_ev pipe_ev, void *ref)