CppServer  1.0.0.0
C++ Server Library
survey_client.h
Go to the documentation of this file.
1 
9 #ifndef CPPSERVER_NANOMSG_SURVEY_CLIENT_H
10 #define CPPSERVER_NANOMSG_SURVEY_CLIENT_H
11 
12 #include "client.h"
13 
14 namespace CppServer {
15 namespace Nanomsg {
16 
18 
28 class SurveyClient : public Client
29 {
30 public:
32 
36  explicit SurveyClient(const std::string& address, bool threading = true)
37  : Client(CppServer::Nanomsg::Domain::Std, CppServer::Nanomsg::Protocol::Respondent, address, threading)
38  {}
39  SurveyClient(const SurveyClient&) = delete;
40  SurveyClient(SurveyClient&&) = default;
41  virtual ~SurveyClient() = default;
42 
43  SurveyClient& operator=(const SurveyClient&) = delete;
44  SurveyClient& operator=(SurveyClient&&) = default;
45 };
46 
49 } // namespace Nanomsg
50 } // namespace CppServer
51 
52 #endif // CPPSERVER_NANOMSG_SURVEY_CLIENT_H
C++ Server project definitions.
Definition: asio.h:24
SurveyClient & operator=(const SurveyClient &)=delete
Protocol
Nanomsg protocol.
Definition: nanomsg.h:56
Use to respond to the survey. This socket can be connected to at most one peer.
Nanomsg client.
Definition: client.h:29
Domain
Nanomsg domain.
Definition: nanomsg.h:41
Nanomsg client definition.
Standard full-blown socket.
SurveyClient(const std::string &address, bool threading=true)
Initialize client with a given endpoint address.
Definition: survey_client.h:36
Nanomsg survey client.
Definition: survey_client.h:28