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
cb70c5e7
Commit
cb70c5e7
authored
Mar 15, 2012
by
Kobolog
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed some typos
parent
8095a129
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
zmq.h
include/zmq.h
+1
-1
xrep.cpp
src/xrep.cpp
+4
-4
xrep.hpp
src/xrep.hpp
+1
-1
No files found.
include/zmq.h
View file @
cb70c5e7
...
...
@@ -230,7 +230,7 @@ ZMQ_EXPORT int zmq_term (zmq_ctx_t context);
#define ZMQ_SNDTIMEO 28
#define ZMQ_IPV4ONLY 31
#define ZMQ_LAST_ENDPOINT 32
#define ZMQ_FAIL_UNROUT
E
ABLE 33
#define ZMQ_FAIL_UNROUTABLE 33
/* Message options */
#define ZMQ_MORE 1
...
...
src/xrep.cpp
View file @
cb70c5e7
...
...
@@ -34,7 +34,7 @@ zmq::xrep_t::xrep_t (class ctx_t *parent_, uint32_t tid_) :
current_out
(
NULL
),
more_out
(
false
),
next_peer_id
(
generate_random
()),
fail_unrout
e
able
(
false
)
fail_unroutable
(
false
)
{
options
.
type
=
ZMQ_XREP
;
...
...
@@ -86,12 +86,12 @@ int zmq::xrep_t::xsetsockopt (int option_, const void *optval_,
return
-
1
;
}
if
(
sizeof
(
optvallen_
)
!=
sizeof
(
uint64_
t
))
{
if
(
sizeof
(
optvallen_
)
!=
sizeof
(
in
t
))
{
errno
=
EINVAL
;
return
-
1
;
}
fail_unroutable
=
*
((
const
uint64_
t
*
)
optval_
);
fail_unroutable
=
*
((
const
in
t
*
)
optval_
);
return
0
;
}
...
...
@@ -164,7 +164,7 @@ int zmq::xrep_t::xsend (msg_t *msg_, int flags_)
}
rc
=
empty
.
close
();
errno_assert
(
rc
==
0
);
}
else
if
(
fail_unr
each
able
)
{
}
else
if
(
fail_unr
out
able
)
{
more_out
=
false
;
retval
=
EHOSTUNREACH
;
}
...
...
src/xrep.hpp
View file @
cb70c5e7
...
...
@@ -102,7 +102,7 @@ namespace zmq
uint32_t
next_peer_id
;
// If true, fail on unroutable messages instead of silently dropping them.
bool
fail_unrout
e
able
;
bool
fail_unroutable
;
xrep_t
(
const
xrep_t
&
);
const
xrep_t
&
operator
=
(
const
xrep_t
&
);
...
...
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