mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-24 23:34:50 +01:00
commit
0f6e737ff8
@ -507,6 +507,13 @@ bool zmq::stream_engine_t::handshake ()
|
|||||||
// message into the incoming message stream.
|
// message into the incoming message stream.
|
||||||
if (options.type == ZMQ_PUB || options.type == ZMQ_XPUB)
|
if (options.type == ZMQ_PUB || options.type == ZMQ_XPUB)
|
||||||
subscription_required = true;
|
subscription_required = true;
|
||||||
|
|
||||||
|
// We are sending our identity now and the next message
|
||||||
|
// will come from the socket.
|
||||||
|
read_msg = &stream_engine_t::pull_msg_from_session;
|
||||||
|
|
||||||
|
// We are expecting identity message.
|
||||||
|
write_msg = &stream_engine_t::write_identity;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (greeting_recv [revision_pos] == ZMTP_1_0) {
|
if (greeting_recv [revision_pos] == ZMTP_1_0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user