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/rep.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/rep.cpp') diff --git a/src/rep.cpp b/src/rep.cpp index 2fbb66c..d586988 100644 --- a/src/rep.cpp +++ b/src/rep.cpp @@ -24,28 +24,20 @@ #include "pipe.hpp" zmq::rep_t::rep_t (class app_thread_t *parent_) : - socket_base_t (parent_, ZMQ_REP), + socket_base_t (parent_), active (0), current (0), waiting_for_reply (false), reply_pipe (NULL) { + options.requires_in = true; + options.requires_out = true; } zmq::rep_t::~rep_t () { } -bool zmq::rep_t::xrequires_in () -{ - return true; -} - -bool zmq::rep_t::xrequires_out () -{ - return true; -} - void zmq::rep_t::xattach_pipes (class reader_t *inpipe_, class writer_t *outpipe_) { -- cgit v1.2.3