mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 21:50:49 +01:00
python binding functional
This commit is contained in:
@@ -54,7 +54,12 @@ bool zmq::session_t::read (::zmq_msg_t *msg_)
|
||||
|
||||
bool zmq::session_t::write (::zmq_msg_t *msg_)
|
||||
{
|
||||
return out_pipe->write (msg_);
|
||||
if (out_pipe->write (msg_)) {
|
||||
zmq_msg_init (msg_);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void zmq::session_t::flush ()
|
||||
|
||||
Reference in New Issue
Block a user