Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
ef186fe1
Commit
ef186fe1
authored
Dec 23, 2012
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spelling fixes
parent
af934f85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
stream_engine.cpp
src/stream_engine.cpp
+5
-6
No files found.
src/stream_engine.cpp
View file @
ef186fe1
...
...
@@ -194,7 +194,7 @@ void zmq::stream_engine_t::terminate ()
void
zmq
::
stream_engine_t
::
in_event
()
{
// If still handshaking, receive and prcess the greeting message.
// If still handshaking, receive and pr
o
cess the greeting message.
if
(
unlikely
(
handshaking
))
if
(
!
handshake
())
return
;
...
...
@@ -390,9 +390,8 @@ bool zmq::stream_engine_t::handshake ()
// Position of the version field in the greeting.
const
size_t
version_pos
=
10
;
// Is the peer using the unversioned protocol?
// If so, we send and receive rests of identity
// messages.
// Is the peer using ZMTP/1.0 with no version number?
// If so, we send and receive rests of identity messages
if
(
greeting
[
0
]
!=
0xff
||
!
(
greeting
[
9
]
&
0x01
))
{
encoder
=
new
(
std
::
nothrow
)
encoder_t
(
out_batch_size
);
alloc_assert
(
encoder
);
...
...
@@ -417,8 +416,8 @@ bool zmq::stream_engine_t::handshake ()
insize
=
greeting_bytes_read
;
// To allow for interoperability with peers that do not forward
// their subscriptions, we inject a phony subsription
// message into the incom
m
ing message stream. To put this
// their subscriptions, we inject a phony subs
c
ription
// message into the incoming message stream. To put this
// message right after the identity message, we temporarily
// divert the message stream from session to ourselves.
if
(
options
.
type
==
ZMQ_PUB
||
options
.
type
==
ZMQ_XPUB
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment