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
fb576d2f
Commit
fb576d2f
authored
Aug 15, 2018
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: unnecessary procedural code
Solution: replace by functional expression
parent
3455be14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
socket_base.cpp
src/socket_base.cpp
+10
-10
No files found.
src/socket_base.cpp
View file @
fb576d2f
...
...
@@ -688,16 +688,16 @@ int zmq::socket_base_t::connect (const char *addr_)
// The total HWM for an inproc connection should be the sum of
// the binder's HWM and the connector's HWM.
int
sndhwm
=
0
;
if
(
peer
.
socket
==
NULL
)
sndhwm
=
options
.
sndhwm
;
else
if
(
options
.
sndhwm
!=
0
&&
peer
.
options
.
rcvhwm
!=
0
)
sndhwm
=
options
.
sndhwm
+
peer
.
options
.
rcvhwm
;
int
rcvhwm
=
0
;
if
(
peer
.
socket
==
NULL
)
rcvhwm
=
options
.
rcvhwm
;
else
if
(
options
.
rcvhwm
!=
0
&&
peer
.
options
.
sndhwm
!=
0
)
rcvhwm
=
options
.
rcvhwm
+
peer
.
options
.
sndhwm
;
const
int
sndhwm
=
peer
.
socket
==
NULL
?
options
.
sndhwm
:
options
.
sndhwm
!=
0
&&
peer
.
options
.
rcvhwm
!=
0
?
options
.
sndhwm
+
peer
.
options
.
rcvhwm
:
0
;
const
int
rcvhwm
=
peer
.
socket
==
NULL
?
options
.
rcvhwm
:
options
.
rcvhwm
!=
0
&&
peer
.
options
.
sndhwm
!=
0
?
options
.
rcvhwm
+
peer
.
options
.
sndhwm
:
0
;
// Create a bi-directional pipe to connect the peers.
object_t
*
parents
[
2
]
=
{
this
,
peer
.
socket
==
NULL
?
this
:
peer
.
socket
};
...
...
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