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
01b9bc36
Commit
01b9bc36
authored
Nov 14, 2012
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #471 from methodmissing/fix-disconnect-event-addr
Fix addresses on triggered events
parents
37f8ce69
5205415b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
socket_base.cpp
src/socket_base.cpp
+9
-9
No files found.
src/socket_base.cpp
View file @
01b9bc36
...
...
@@ -1063,7 +1063,7 @@ void zmq::socket_base_t::event_connect_delayed (const char *addr_, int err_)
if
(
monitor_events
&
ZMQ_EVENT_CONNECT_DELAYED
)
{
zmq_event_t
event
;
event
.
event
=
ZMQ_EVENT_CONNECT_DELAYED
;
event
.
data
.
connected
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
connect
_delay
ed
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
connect_delayed
.
err
=
err_
;
monitor_event
(
event
);
}
...
...
@@ -1074,7 +1074,7 @@ void zmq::socket_base_t::event_connect_retried (const char *addr_, int interval_
if
(
monitor_events
&
ZMQ_EVENT_CONNECT_RETRIED
)
{
zmq_event_t
event
;
event
.
event
=
ZMQ_EVENT_CONNECT_RETRIED
;
event
.
data
.
connected
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
connect
_retri
ed
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
connect_retried
.
interval
=
interval_
;
monitor_event
(
event
);
}
...
...
@@ -1085,7 +1085,7 @@ void zmq::socket_base_t::event_listening (const char *addr_, int fd_)
if
(
monitor_events
&
ZMQ_EVENT_LISTENING
)
{
zmq_event_t
event
;
event
.
event
=
ZMQ_EVENT_LISTENING
;
event
.
data
.
connected
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
listening
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
listening
.
fd
=
fd_
;
monitor_event
(
event
);
}
...
...
@@ -1096,7 +1096,7 @@ void zmq::socket_base_t::event_bind_failed (const char *addr_, int err_)
if
(
monitor_events
&
ZMQ_EVENT_BIND_FAILED
)
{
zmq_event_t
event
;
event
.
event
=
ZMQ_EVENT_BIND_FAILED
;
event
.
data
.
connect
ed
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
bind_fail
ed
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
bind_failed
.
err
=
err_
;
monitor_event
(
event
);
}
...
...
@@ -1107,7 +1107,7 @@ void zmq::socket_base_t::event_accepted (const char *addr_, int fd_)
if
(
monitor_events
&
ZMQ_EVENT_ACCEPTED
)
{
zmq_event_t
event
;
event
.
event
=
ZMQ_EVENT_ACCEPTED
;
event
.
data
.
connec
ted
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
accep
ted
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
accepted
.
fd
=
fd_
;
monitor_event
(
event
);
}
...
...
@@ -1118,7 +1118,7 @@ void zmq::socket_base_t::event_accept_failed (const char *addr_, int err_)
if
(
monitor_events
&
ZMQ_EVENT_ACCEPT_FAILED
)
{
zmq_event_t
event
;
event
.
event
=
ZMQ_EVENT_ACCEPT_FAILED
;
event
.
data
.
connect
ed
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
accept_fail
ed
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
accept_failed
.
err
=
err_
;
monitor_event
(
event
);
}
...
...
@@ -1129,7 +1129,7 @@ void zmq::socket_base_t::event_closed (const char *addr_, int fd_)
if
(
monitor_events
&
ZMQ_EVENT_CLOSED
)
{
zmq_event_t
event
;
event
.
event
=
ZMQ_EVENT_CLOSED
;
event
.
data
.
c
onnect
ed
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
c
los
ed
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
closed
.
fd
=
fd_
;
monitor_event
(
event
);
}
...
...
@@ -1140,7 +1140,7 @@ void zmq::socket_base_t::event_close_failed (const char *addr_, int err_)
if
(
monitor_events
&
ZMQ_EVENT_CLOSE_FAILED
)
{
zmq_event_t
event
;
event
.
event
=
ZMQ_EVENT_CLOSE_FAILED
;
event
.
data
.
c
onnect
ed
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
c
lose_fail
ed
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
close_failed
.
err
=
err_
;
monitor_event
(
event
);
}
...
...
@@ -1151,7 +1151,7 @@ void zmq::socket_base_t::event_disconnected (const char *addr_, int fd_)
if
(
monitor_events
&
ZMQ_EVENT_DISCONNECTED
)
{
zmq_event_t
event
;
event
.
event
=
ZMQ_EVENT_DISCONNECTED
;
event
.
data
.
connected
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
dis
connected
.
addr
=
const_cast
<
char
*>
(
addr_
);
event
.
data
.
disconnected
.
fd
=
fd_
;
monitor_event
(
event
);
}
...
...
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