CppServer  1.0.0.0
C++ Server Library
pair_client.h
Go to the documentation of this file.
1 
9 #ifndef CPPSERVER_NANOMSG_PAIR_CLIENT_H
10 #define CPPSERVER_NANOMSG_PAIR_CLIENT_H
11 
12 #include "client.h"
13 
14 namespace CppServer {
15 namespace Nanomsg {
16 
18 
37 class PairClient : public Client
38 {
39 public:
41 
45  explicit PairClient(const std::string& address, bool threading = true)
46  : Client(CppServer::Nanomsg::Domain::Std, CppServer::Nanomsg::Protocol::Pair, address, threading)
47  {}
48  PairClient(const PairClient&) = delete;
49  PairClient(PairClient&&) = default;
50  virtual ~PairClient() = default;
51 
52  PairClient& operator=(const PairClient&) = delete;
53  PairClient& operator=(PairClient&&) = default;
54 };
55 
58 } // namespace Nanomsg
59 } // namespace CppServer
60 
61 #endif // CPPSERVER_NANOMSG_PAIR_CLIENT_H
Socket for communication with exactly one peer.
C++ Server project definitions.
Definition: asio.h:24
Nanomsg pair client.
Definition: pair_client.h:37
PairClient(const std::string &address, bool threading=true)
Initialize client with a given endpoint address.
Definition: pair_client.h:45
PairClient & operator=(const PairClient &)=delete
Protocol
Nanomsg protocol.
Definition: nanomsg.h:56
Nanomsg client.
Definition: client.h:29
Domain
Nanomsg domain.
Definition: nanomsg.h:41
Nanomsg client definition.
Standard full-blown socket.
virtual ~PairClient()=default