From b15f695976d21300beabc3e0ecef87c1a0b4dc4c Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Mon, 21 Sep 2009 17:20:13 +0200 Subject: different fixes to req/rep --- src/pub.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/pub.cpp') diff --git a/src/pub.cpp b/src/pub.cpp index 020d789..faaa9aa 100644 --- a/src/pub.cpp +++ b/src/pub.cpp @@ -25,8 +25,10 @@ #include "pipe.hpp" zmq::pub_t::pub_t (class app_thread_t *parent_) : - socket_base_t (parent_, ZMQ_PUB) + socket_base_t (parent_) { + options.requires_in = false; + options.requires_out = true; } zmq::pub_t::~pub_t () @@ -36,16 +38,6 @@ zmq::pub_t::~pub_t () out_pipes.clear (); } -bool zmq::pub_t::xrequires_in () -{ - return false; -} - -bool zmq::pub_t::xrequires_out () -{ - return true; -} - void zmq::pub_t::xattach_pipes (class reader_t *inpipe_, class writer_t *outpipe_) { -- cgit v1.2.3