summaryrefslogtreecommitdiff
path: root/src/p2p.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-03-13 14:40:10 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-03-13 14:40:10 +0100
commit61ad236e9543a569fe066872a5fda4fa40ea7591 (patch)
tree7b31a4611a29979692a59fc7e0464451bddc4df3 /src/p2p.cpp
parentc42343d3f027248514344aec9e3814dfe1047d59 (diff)
ZMQ_NOFLUSH and zmq_flush obsoleted
Diffstat (limited to 'src/p2p.cpp')
-rw-r--r--src/p2p.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/p2p.cpp b/src/p2p.cpp
index f81c6c4..3f63d81 100644
--- a/src/p2p.cpp
+++ b/src/p2p.cpp
@@ -100,8 +100,7 @@ int zmq::p2p_t::xsend (zmq_msg_t *msg_, int flags_)
return -1;
}
- if (!(flags_ & ZMQ_NOFLUSH))
- outpipe->flush ();
+ outpipe->flush ();
// Detach the original message from the data buffer.
int rc = zmq_msg_init (msg_);
@@ -110,13 +109,6 @@ int zmq::p2p_t::xsend (zmq_msg_t *msg_, int flags_)
return 0;
}
-int zmq::p2p_t::xflush ()
-{
- if (outpipe)
- outpipe->flush ();
- return 0;
-}
-
int zmq::p2p_t::xrecv (zmq_msg_t *msg_, int flags_)
{
// Deallocate old content of the message.