mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-14 23:07:59 +02:00
Add ZMTP heartbeats
This commit adds ZMTP connection heartbeats described in http://rfc.zeromq.org/spec:37/ZMTP.
This commit is contained in:

committed by
Jonathan Reams

parent
4b4e00bde0
commit
cbb3b176a6
@@ -137,6 +137,8 @@ int zmq::session_base_t::pull_msg (msg_t *msg_)
|
||||
|
||||
int zmq::session_base_t::push_msg (msg_t *msg_)
|
||||
{
|
||||
if(msg_->flags() & msg_t::command)
|
||||
return 0;
|
||||
if (pipe && pipe->write (msg_)) {
|
||||
int rc = msg_->init ();
|
||||
errno_assert (rc == 0);
|
||||
|
Reference in New Issue
Block a user