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
a1fbd973
Commit
a1fbd973
authored
May 19, 2014
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1048 from hurtonm/master
PLAIN: Small simplification
parents
155feccb
32b3daad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
plain_client.cpp
src/plain_client.cpp
+2
-3
plain_client.hpp
src/plain_client.hpp
+1
-2
No files found.
src/plain_client.cpp
View file @
a1fbd973
...
...
@@ -30,7 +30,6 @@
zmq
::
plain_client_t
::
plain_client_t
(
const
options_t
&
options_
)
:
mechanism_t
(
options_
),
error_command_received
(
false
),
state
(
sending_hello
)
{
}
...
...
@@ -98,7 +97,7 @@ zmq::mechanism_t::status_t zmq::plain_client_t::status () const
if
(
state
==
ready
)
return
mechanism_t
::
ready
;
else
if
(
error_command_received
)
if
(
state
==
error_command_received
)
return
mechanism_t
::
error
;
else
return
mechanism_t
::
handshaking
;
...
...
@@ -208,6 +207,6 @@ int zmq::plain_client_t::process_error (
errno
=
EPROTO
;
return
-
1
;
}
error_command_received
=
true
;
state
=
error_command_received
;
return
0
;
}
src/plain_client.hpp
View file @
a1fbd973
...
...
@@ -42,13 +42,12 @@ namespace zmq
private
:
bool
error_command_received
;
enum
state_t
{
sending_hello
,
waiting_for_welcome
,
sending_initiate
,
waiting_for_ready
,
error_command_received
,
ready
};
...
...
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