mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-20 22:31:33 +02:00
Updated libzmq to match RFC 23, 24, 25, 26
* Command names changed from null terminated to length-specified * Command frames use the correct flag (bit 2) * test_stream acts as test case for command frames * Some code cleanups
This commit is contained in:
@@ -54,6 +54,8 @@ int zmq::v2_decoder_t::flags_ready ()
|
||||
msg_flags = 0;
|
||||
if (tmpbuf [0] & v2_protocol_t::more_flag)
|
||||
msg_flags |= msg_t::more;
|
||||
if (tmpbuf [0] & v2_protocol_t::command_flag)
|
||||
msg_flags |= msg_t::command;
|
||||
|
||||
// The payload length is either one or eight bytes,
|
||||
// depending on whether the 'large' bit is set.
|
||||
|
Reference in New Issue
Block a user