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
89e53131
Commit
89e53131
authored
Aug 09, 2018
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored zmq::stream_engine_t::handshake, extracted several sub-methods
parent
c3739ff6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
stream_engine.cpp
src/stream_engine.cpp
+0
-0
stream_engine.hpp
src/stream_engine.hpp
+13
-3
No files found.
src/stream_engine.cpp
View file @
89e53131
This diff is collapsed.
Click to expand it.
src/stream_engine.hpp
View file @
89e53131
...
...
@@ -93,12 +93,22 @@ class stream_engine_t : public io_object_t, public i_engine
// Function to handle network disconnections.
void
error
(
error_reason_t
reason_
);
// Receives the greeting message from the peer.
int
receive_greeting
();
// Detects the protocol used by the peer.
bool
handshake
();
// Receive the greeting from the peer.
int
receive_greeting
();
void
receive_greeting_versioned
();
typedef
bool
(
stream_engine_t
::*
handshake_fun_t
)
();
static
handshake_fun_t
select_handshake_fun
(
bool
unversioned
,
unsigned
char
revision
);
bool
handshake_v1_0_unversioned
();
bool
handshake_v1_0
();
bool
handshake_v2_0
();
bool
handshake_v3_0
();
int
routing_id_msg
(
msg_t
*
msg_
);
int
process_routing_id_msg
(
msg_t
*
msg_
);
...
...
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