From 0b59866a84f733e5a53b0d2f32570581691747ef Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Mon, 30 May 2011 10:07:34 +0200 Subject: Patches from sub-forward branch incorporated Signed-off-by: Martin Sustrik --- src/pub.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/pub.cpp') diff --git a/src/pub.cpp b/src/pub.cpp index 8558265..4787c32 100644 --- a/src/pub.cpp +++ b/src/pub.cpp @@ -30,3 +30,16 @@ zmq::pub_t::pub_t (class ctx_t *parent_, uint32_t tid_) : zmq::pub_t::~pub_t () { } + +int zmq::pub_t::xrecv (class msg_t *msg_, int flags_) +{ + // Messages cannot be received from PUB socket. + errno = ENOTSUP; + return -1; +} + +bool zmq::pub_t::xhas_in () +{ + return false; +} + -- cgit v1.2.3