summaryrefslogtreecommitdiff
path: root/src/pub.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-09-21 17:20:13 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-09-21 17:20:13 +0200
commitb15f695976d21300beabc3e0ecef87c1a0b4dc4c (patch)
tree09513a17251be5bc8d132b8d00cbf2b893bcf57a /src/pub.cpp
parentcb1b6fe32cbf3c7cf5961bb4156f2de743693a3a (diff)
different fixes to req/rep
Diffstat (limited to 'src/pub.cpp')
-rw-r--r--src/pub.cpp14
1 files changed, 3 insertions, 11 deletions
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_)
{