From a28928fe376f73ef8ca683523102908616445ada Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Mon, 20 Jun 2011 13:36:18 +0200 Subject: Introduce ZMQ_ROUTER and ZMQ_DEALER sockets Signed-off-by: Martin Sustrik --- src/socket_base.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/socket_base.cpp') diff --git a/src/socket_base.cpp b/src/socket_base.cpp index 8e8676c..eaf1776 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -59,6 +59,8 @@ #include "xrep.hpp" #include "xpub.hpp" #include "xsub.hpp" +#include "router.hpp" +#include "dealer.hpp" bool zmq::socket_base_t::check_tag () { @@ -103,7 +105,13 @@ zmq::socket_base_t *zmq::socket_base_t::create (int type_, class ctx_t *parent_, break; case ZMQ_XSUB: s = new (std::nothrow) xsub_t (parent_, tid_); - break; + break; + case ZMQ_ROUTER: + s = new (std::nothrow) router_t (parent_, tid_); + break; + case ZMQ_DEALER: + s = new (std::nothrow) dealer_t (parent_, tid_); + break; default: errno = EINVAL; return NULL; -- cgit v1.2.3