zmqpp  4.1.2
C++ bindings for 0mq (libzmq)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
socket_types.hpp
Go to the documentation of this file.
1 /*
2  * This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5  *
6  * This file is part of zmqpp.
7  * Copyright (c) 2011-2015 Contributors as noted in the AUTHORS file.
8  */
9 
17 #ifndef ZMQPP_SOCKET_TYPES_HPP_
18 #define ZMQPP_SOCKET_TYPES_HPP_
19 
20 namespace zmqpp
21 {
22 
30 ZMQPP_COMPARABLE_ENUM socket_type {
37  pair = ZMQ_PAIR,
38 
48  publish = ZMQ_PUB,
49 
61  subscribe = ZMQ_SUB,
62 
70  pull = ZMQ_PULL,
71 
80  push = ZMQ_PUSH,
81 
91  request = ZMQ_REQ,
92 
101  reply = ZMQ_REP,
102 
111  xpublish = ZMQ_XPUB,
112 
120  xsubscribe = ZMQ_XSUB,
121 
129  xrequest = ZMQ_XREQ,
130 
138  xreply = ZMQ_XREP,
139 
145 #if (ZMQ_VERSION_MAJOR >= 4)
146  stream = ZMQ_STREAM,
147 #endif
148 
149  // To match for people who prefer the shorter versions
150  pub = ZMQ_PUB,
151  sub = ZMQ_SUB,
152  req = ZMQ_REQ,
153  rep = ZMQ_REP,
154  xpub = ZMQ_XPUB,
155  xsub = ZMQ_XSUB,
156  xreq = ZMQ_XREQ,
157  xrep = ZMQ_XREP,
159  // For completion
160  router = ZMQ_ROUTER,
161  dealer = ZMQ_DEALER
162 };
163 
164 }
165 
166 #endif /* ZMQPP_SOCKET_TYPES_HPP_ */
C++ wrapper around zmq.
Definition: actor.cpp:29
ZMQPP_COMPARABLE_ENUM socket_type
Socket types allowed by zmq.
Definition: socket_types.hpp:30