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
87655b0b
Commit
87655b0b
authored
Aug 24, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
listener object unregisters its fd correctly
parent
0d5f3ebb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
zmq_engine.cpp
src/zmq_engine.cpp
+0
-3
zmq_listener.cpp
src/zmq_listener.cpp
+2
-3
zmq_listener.hpp
src/zmq_listener.hpp
+1
-1
No files found.
src/zmq_engine.cpp
View file @
87655b0b
...
@@ -62,15 +62,12 @@ void zmq::zmq_engine_t::plug (io_thread_t *io_thread_, i_inout *inout_)
...
@@ -62,15 +62,12 @@ void zmq::zmq_engine_t::plug (io_thread_t *io_thread_, i_inout *inout_)
// Connect to I/O threads poller object.
// Connect to I/O threads poller object.
io_object_t
::
plug
(
io_thread_
);
io_object_t
::
plug
(
io_thread_
);
handle
=
add_fd
(
tcp_socket
.
get_fd
());
handle
=
add_fd
(
tcp_socket
.
get_fd
());
set_pollin
(
handle
);
set_pollin
(
handle
);
set_pollout
(
handle
);
set_pollout
(
handle
);
// Flush all the data that may have been already received downstream.
// Flush all the data that may have been already received downstream.
in_event
();
in_event
();
// TODO: Re-plug to the new I/O thread & poller!
}
}
void
zmq
::
zmq_engine_t
::
unplug
()
void
zmq
::
zmq_engine_t
::
unplug
()
...
...
src/zmq_listener.cpp
View file @
87655b0b
...
@@ -49,9 +49,10 @@ void zmq::zmq_listener_t::process_plug ()
...
@@ -49,9 +49,10 @@ void zmq::zmq_listener_t::process_plug ()
set_pollin
(
handle
);
set_pollin
(
handle
);
}
}
void
zmq
::
zmq_listener_t
::
process_
unplug
()
void
zmq
::
zmq_listener_t
::
process_
term
()
{
{
rm_fd
(
handle
);
rm_fd
(
handle
);
own_t
::
process_term
();
}
}
void
zmq
::
zmq_listener_t
::
in_event
()
void
zmq
::
zmq_listener_t
::
in_event
()
...
@@ -70,5 +71,3 @@ void zmq::zmq_listener_t::in_event ()
...
@@ -70,5 +71,3 @@ void zmq::zmq_listener_t::in_event ()
launch_sibling
(
init
);
launch_sibling
(
init
);
}
}
src/zmq_listener.hpp
View file @
87655b0b
...
@@ -44,7 +44,7 @@ namespace zmq
...
@@ -44,7 +44,7 @@ namespace zmq
// Handlers for incoming commands.
// Handlers for incoming commands.
void
process_plug
();
void
process_plug
();
void
process_
unplug
();
void
process_
term
();
// Handlers for I/O events.
// Handlers for I/O events.
void
in_event
();
void
in_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