9 #ifndef CPPSERVER_NANOMSG_SUBSCRIBE_CLIENT_H 10 #define CPPSERVER_NANOMSG_SUBSCRIBE_CLIENT_H 38 explicit SubscribeClient(
const std::string& address,
const std::string& topic =
"",
bool threading =
true)
60 #endif // CPPSERVER_NANOMSG_SUBSCRIBE_CLIENT_H Receives messages from the publisher. Send operation is not defined.
bool SetSocketOption(int level, int option, const void *value, size_t size)
Set the socket option.
C++ Server project definitions.
size_t Send(const void *buffer, size_t size)
Send data to the server.
Nanomsg subscribe client.
size_t TrySend(const void *buffer, size_t size)
Try to send data to the server in non-blocking mode.
SubscribeClient & operator=(const SubscribeClient &)=delete
Protocol
Nanomsg protocol.
SubscribeClient(const std::string &address, const std::string &topic="", bool threading=true)
Initialize client with a given endpoint address.
virtual ~SubscribeClient()=default
Nanomsg client definition.
Standard full-blown socket.
Socket & socket() noexcept
Get the Nanomsg socket.