9 #ifndef CPPSERVER_NANOMSG_SUBSCRIBE_SERVER_H 10 #define CPPSERVER_NANOMSG_SUBSCRIBE_SERVER_H 58 #endif // CPPSERVER_NANOMSG_SUBSCRIBE_SERVER_H
size_t TryReceive(Message &message)
Try to receive a message from the client in non-blocking mode.
Distribute messages to multiple destinations. Receive operation is not defined.
SubscribeServer(const std::string &address)
Initialize server with a given endpoint address.
C++ Server project definitions.
virtual void onThreadCleanup()
Cleanup thread handler.
virtual void onIdle()
Handle server idle notification.
virtual void onThreadInitialize()
Initialize thread handler.
Nanomsg server definition.
virtual void onReceived(Message &message)
Handle message received notification.
SubscribeServer & operator=(const SubscribeServer &)=delete
Protocol
Nanomsg protocol.
size_t Receive(Message &message)
Receive a message from the client.
Nanomsg subscribe server.
Standard full-blown socket.
virtual ~SubscribeServer()=default