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
841cf69e
Commit
841cf69e
authored
Jun 10, 2012
by
Ian Barber
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/zeromq/libzmq
parents
3053f7e3
ace8f753
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
decoder.cpp
src/decoder.cpp
+1
-1
fq.cpp
src/fq.cpp
+5
-5
signaler.cpp
src/signaler.cpp
+2
-2
No files found.
src/decoder.cpp
View file @
841cf69e
...
...
@@ -145,7 +145,7 @@ bool zmq::decoder_t::eight_byte_size_ready ()
bool
zmq
::
decoder_t
::
flags_ready
()
{
// Store the flags from the wire into the message structure.
in_progress
.
set_flags
(
tmpbuf
[
0
]);
in_progress
.
set_flags
(
tmpbuf
[
0
]
&
msg_t
::
more
);
next_step
(
in_progress
.
data
(),
in_progress
.
size
(),
&
decoder_t
::
message_ready
);
...
...
src/fq.cpp
View file @
841cf69e
...
...
@@ -84,11 +84,6 @@ int zmq::fq_t::recvpipe (msg_t *msg_, pipe_t **pipe_)
// subsequent part should be immediately available.
bool
fetched
=
pipes
[
current
]
->
read
(
msg_
);
// Check the atomicity of the message. If we've already received the
// first part of the message we should get the remaining parts
// without blocking.
zmq_assert
(
!
more
||
fetched
);
// Note that when message is not fetched, current pipe is deactivated
// and replaced by another active pipe. Thus we don't have to increase
// the 'current' pointer.
...
...
@@ -101,6 +96,11 @@ int zmq::fq_t::recvpipe (msg_t *msg_, pipe_t **pipe_)
return
0
;
}
// Check the atomicity of the message.
// If we've already received the first part of the message
// we should get the remaining parts without blocking.
zmq_assert
(
!
more
);
active
--
;
pipes
.
swap
(
current
,
active
);
if
(
current
==
active
)
...
...
src/signaler.cpp
View file @
841cf69e
...
...
@@ -298,7 +298,7 @@ int zmq::signaler_t::make_fdpair (fd_t *r_, fd_t *w_)
wsa_assert
(
rc
!=
SOCKET_ERROR
);
// Connect writer to the listener.
rc
=
connect
(
*
w_
,
(
s
ockaddr
*
)
&
addr
,
sizeof
(
addr
));
rc
=
connect
(
*
w_
,
(
s
truct
sockaddr
*
)
&
addr
,
sizeof
(
addr
));
wsa_assert
(
rc
!=
SOCKET_ERROR
);
// Accept connection from writer.
...
...
@@ -327,7 +327,7 @@ int zmq::signaler_t::make_fdpair (fd_t *r_, fd_t *w_)
//
// The bug will be fixed in V5.6 ECO4 and beyond. In the meantime, we'll
// create the socket pair manually.
sockaddr_in
lcladdr
;
s
truct
s
ockaddr_in
lcladdr
;
memset
(
&
lcladdr
,
0
,
sizeof
(
lcladdr
));
lcladdr
.
sin_family
=
AF_INET
;
lcladdr
.
sin_addr
.
s_addr
=
htonl
(
INADDR_LOOPBACK
);
...
...
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