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
a224c973
Commit
a224c973
authored
Sep 04, 2012
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #420 from ianbarber/master
Fix some PGM refactor breakages
parents
d0687876
d7331b7b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
pgm_receiver.cpp
src/pgm_receiver.cpp
+1
-1
pgm_sender.cpp
src/pgm_sender.cpp
+1
-1
pgm_socket.cpp
src/pgm_socket.cpp
+3
-3
test_connect_delay.cpp
tests/test_connect_delay.cpp
+1
-1
No files found.
src/pgm_receiver.cpp
View file @
a224c973
...
...
@@ -274,7 +274,7 @@ void zmq::pgm_receiver_t::timer_event (int token)
void
zmq
::
pgm_receiver_t
::
drop_subscriptions
()
{
msg_t
msg
;
while
(
session
->
read
(
&
msg
))
while
(
session
->
pull_msg
(
&
msg
))
msg
.
close
();
}
...
...
src/pgm_sender.cpp
View file @
a224c973
...
...
@@ -109,7 +109,7 @@ void zmq::pgm_sender_t::unplug ()
rm_fd
(
uplink_handle
);
rm_fd
(
rdata_notify_handle
);
rm_fd
(
pending_notify_handle
);
encoder
.
set_
session
(
NULL
);
encoder
.
set_
msg_source
(
NULL
);
}
void
zmq
::
pgm_sender_t
::
terminate
()
...
...
src/pgm_socket.cpp
View file @
a224c973
...
...
@@ -65,7 +65,7 @@ zmq::pgm_socket_t::pgm_socket_t (bool receiver_, const options_t &options_) :
// link-local;224.250.0.1,224.250.0.2;224.250.0.3:8000
// ;[fe80::1%en0]:7500
int
zmq
::
pgm_socket_t
::
init_address
(
const
char
*
network_
,
struct
pgm_addrinfo_t
**
addr
,
uint16_t
*
port_number
)
struct
pgm_addrinfo_t
**
res
,
uint16_t
*
port_number
)
{
// Parse port number, start from end for IPv6
const
char
*
port_delim
=
strrchr
(
network_
,
':'
);
...
...
@@ -85,11 +85,11 @@ int zmq::pgm_socket_t::init_address (const char *network_,
memcpy
(
network
,
network_
,
port_delim
-
network_
);
pgm_error_t
*
pgm_error
=
NULL
;
struct
pgm_addrinfo_t
hints
,
*
res
=
NULL
;
struct
pgm_addrinfo_t
hints
;
memset
(
&
hints
,
0
,
sizeof
(
hints
));
hints
.
ai_family
=
AF_UNSPEC
;
if
(
!
pgm_getaddrinfo
(
network
,
NULL
,
&
res
,
&
pgm_error
))
{
if
(
!
pgm_getaddrinfo
(
network
,
NULL
,
res
,
&
pgm_error
))
{
// Invalid parameters don't set pgm_error_t.
zmq_assert
(
pgm_error
!=
NULL
);
...
...
tests/test_connect_delay.cpp
View file @
a224c973
...
...
@@ -112,7 +112,7 @@ static void *worker (void *)
hadone
=
0
;
// Not checking RC as some may be -1
for
(
int
i
=
0
;
i
<
4
;
i
++
)
{
for
(
int
i
=
0
;
i
<
6
;
i
++
)
{
usleep
(
200000
);
rc
=
zmq_send
(
socket
,
"hi"
,
2
,
ZMQ_DONTWAIT
);
if
(
rc
!=
-
1
)
...
...
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