17 return std::make_tuple(0,
true);
23 catch (CppCommon::SystemException& ex)
25 onError(ex.system_error(), ex.string());
26 return std::make_tuple(0,
true);
33 return std::make_tuple(0,
true);
39 catch (CppCommon::SystemException& ex)
41 onError(ex.system_error(), ex.string());
42 return std::make_tuple(0,
true);
std::tuple< size_t, bool > ReceiveSurvey(Message &message)
Receive a respond to the survey from the socket in non-blocking mode.
Socket & socket() noexcept
Get the Nanomsg socket.
C++ Server project definitions.
std::tuple< size_t, bool > TryReceiveSurvey(Message &message)
Try to receive a respond to the survey from the socket in non-blocking mode.
std::tuple< size_t, bool > ReceiveSurvey(Message &message)
Receive a respond to the survey from the clients in non-blocking mode.
Nanomsg survey server definition.
bool IsStarted() const noexcept
Is the server started?
virtual void onError(int error, const std::string &message)
Handle error notification.
std::tuple< size_t, bool > TryReceiveSurvey(Message &message)
Try to receive a respond to the survey from the clients in non-blocking mode.