9 #ifndef CPPSERVER_NANOMSG_PUSH_CLIENT_H 10 #define CPPSERVER_NANOMSG_PUSH_CLIENT_H 57 #endif // CPPSERVER_NANOMSG_PUSH_CLIENT_H PushClient(const std::string &address)
Initialize client with a given endpoint address.
size_t Receive(Message &message)
Receive a message from the server.
This socket is used to send messages to a cluster of load-balanced nodes. Receive operation is not im...
C++ Server project definitions.
virtual void onIdle()
Handle client idle notification.
virtual ~PushClient()=default
size_t TryReceive(Message &message)
Try to receive a message from the server in non-blocking mode.
PushClient & operator=(const PushClient &)=delete
Protocol
Nanomsg protocol.
Nanomsg client definition.
virtual void onReceived(Message &message)
Handle message received notification.
virtual void onThreadInitialize()
Initialize thread handler.
Standard full-blown socket.
virtual void onThreadCleanup()
Cleanup thread handler.