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
5f4145e7
Commit
5f4145e7
authored
May 20, 2014
by
Martin Hurton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small code cleanup
- add const modifier to address parameter of event generating functions
parent
6bdedcbc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
21 deletions
+21
-21
socket_base.cpp
src/socket_base.cpp
+11
-11
socket_base.hpp
src/socket_base.hpp
+10
-10
No files found.
src/socket_base.cpp
View file @
5f4145e7
...
...
@@ -1233,61 +1233,61 @@ zmq::fd_t zmq::socket_base_t::fd()
return
file_desc
;
}
void
zmq
::
socket_base_t
::
event_connected
(
std
::
string
&
addr_
,
int
fd_
)
void
zmq
::
socket_base_t
::
event_connected
(
const
std
::
string
&
addr_
,
int
fd_
)
{
if
(
monitor_events
&
ZMQ_EVENT_CONNECTED
)
monitor_event
(
ZMQ_EVENT_CONNECTED
,
fd_
,
addr_
);
}
void
zmq
::
socket_base_t
::
event_connect_delayed
(
std
::
string
&
addr_
,
int
err_
)
void
zmq
::
socket_base_t
::
event_connect_delayed
(
const
std
::
string
&
addr_
,
int
err_
)
{
if
(
monitor_events
&
ZMQ_EVENT_CONNECT_DELAYED
)
monitor_event
(
ZMQ_EVENT_CONNECT_DELAYED
,
err_
,
addr_
);
}
void
zmq
::
socket_base_t
::
event_connect_retried
(
std
::
string
&
addr_
,
int
interval_
)
void
zmq
::
socket_base_t
::
event_connect_retried
(
const
std
::
string
&
addr_
,
int
interval_
)
{
if
(
monitor_events
&
ZMQ_EVENT_CONNECT_RETRIED
)
monitor_event
(
ZMQ_EVENT_CONNECT_RETRIED
,
interval_
,
addr_
);
}
void
zmq
::
socket_base_t
::
event_listening
(
std
::
string
&
addr_
,
int
fd_
)
void
zmq
::
socket_base_t
::
event_listening
(
const
std
::
string
&
addr_
,
int
fd_
)
{
if
(
monitor_events
&
ZMQ_EVENT_LISTENING
)
monitor_event
(
ZMQ_EVENT_LISTENING
,
fd_
,
addr_
);
}
void
zmq
::
socket_base_t
::
event_bind_failed
(
std
::
string
&
addr_
,
int
err_
)
void
zmq
::
socket_base_t
::
event_bind_failed
(
const
std
::
string
&
addr_
,
int
err_
)
{
if
(
monitor_events
&
ZMQ_EVENT_BIND_FAILED
)
monitor_event
(
ZMQ_EVENT_BIND_FAILED
,
err_
,
addr_
);
}
void
zmq
::
socket_base_t
::
event_accepted
(
std
::
string
&
addr_
,
int
fd_
)
void
zmq
::
socket_base_t
::
event_accepted
(
const
std
::
string
&
addr_
,
int
fd_
)
{
if
(
monitor_events
&
ZMQ_EVENT_ACCEPTED
)
monitor_event
(
ZMQ_EVENT_ACCEPTED
,
fd_
,
addr_
);
}
void
zmq
::
socket_base_t
::
event_accept_failed
(
std
::
string
&
addr_
,
int
err_
)
void
zmq
::
socket_base_t
::
event_accept_failed
(
const
std
::
string
&
addr_
,
int
err_
)
{
if
(
monitor_events
&
ZMQ_EVENT_ACCEPT_FAILED
)
monitor_event
(
ZMQ_EVENT_ACCEPT_FAILED
,
err_
,
addr_
);
}
void
zmq
::
socket_base_t
::
event_closed
(
std
::
string
&
addr_
,
int
fd_
)
void
zmq
::
socket_base_t
::
event_closed
(
const
std
::
string
&
addr_
,
int
fd_
)
{
if
(
monitor_events
&
ZMQ_EVENT_CLOSED
)
monitor_event
(
ZMQ_EVENT_CLOSED
,
fd_
,
addr_
);
}
void
zmq
::
socket_base_t
::
event_close_failed
(
std
::
string
&
addr_
,
int
err_
)
void
zmq
::
socket_base_t
::
event_close_failed
(
const
std
::
string
&
addr_
,
int
err_
)
{
if
(
monitor_events
&
ZMQ_EVENT_CLOSE_FAILED
)
monitor_event
(
ZMQ_EVENT_CLOSE_FAILED
,
err_
,
addr_
);
}
void
zmq
::
socket_base_t
::
event_disconnected
(
std
::
string
&
addr_
,
int
fd_
)
void
zmq
::
socket_base_t
::
event_disconnected
(
const
std
::
string
&
addr_
,
int
fd_
)
{
if
(
monitor_events
&
ZMQ_EVENT_DISCONNECTED
)
monitor_event
(
ZMQ_EVENT_DISCONNECTED
,
fd_
,
addr_
);
...
...
src/socket_base.hpp
View file @
5f4145e7
...
...
@@ -110,16 +110,16 @@ namespace zmq
void
set_fd
(
fd_t
fd_
);
fd_t
fd
();
void
event_connected
(
std
::
string
&
addr_
,
int
fd_
);
void
event_connect_delayed
(
std
::
string
&
addr_
,
int
err_
);
void
event_connect_retried
(
std
::
string
&
addr_
,
int
interval_
);
void
event_listening
(
std
::
string
&
addr_
,
int
fd_
);
void
event_bind_failed
(
std
::
string
&
addr_
,
int
err_
);
void
event_accepted
(
std
::
string
&
addr_
,
int
fd_
);
void
event_accept_failed
(
std
::
string
&
addr_
,
int
err_
);
void
event_closed
(
std
::
string
&
addr_
,
int
fd_
);
void
event_close_failed
(
std
::
string
&
addr_
,
int
fd_
);
void
event_disconnected
(
std
::
string
&
addr_
,
int
fd_
);
void
event_connected
(
const
std
::
string
&
addr_
,
int
fd_
);
void
event_connect_delayed
(
const
std
::
string
&
addr_
,
int
err_
);
void
event_connect_retried
(
const
std
::
string
&
addr_
,
int
interval_
);
void
event_listening
(
const
std
::
string
&
addr_
,
int
fd_
);
void
event_bind_failed
(
const
std
::
string
&
addr_
,
int
err_
);
void
event_accepted
(
const
std
::
string
&
addr_
,
int
fd_
);
void
event_accept_failed
(
const
std
::
string
&
addr_
,
int
err_
);
void
event_closed
(
const
std
::
string
&
addr_
,
int
fd_
);
void
event_close_failed
(
const
std
::
string
&
addr_
,
int
fd_
);
void
event_disconnected
(
const
std
::
string
&
addr_
,
int
fd_
);
protected
:
...
...
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