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
7b105865
Commit
7b105865
authored
Jun 12, 2012
by
Ian Barber
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:zeromq/libzmq
parents
33459029
b448de92
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
18 deletions
+46
-18
ipc_connecter.cpp
src/ipc_connecter.cpp
+21
-7
ipc_connecter.hpp
src/ipc_connecter.hpp
+1
-0
ipc_listener.cpp
src/ipc_listener.cpp
+1
-2
tcp_connecter.cpp
src/tcp_connecter.cpp
+21
-7
tcp_connecter.hpp
src/tcp_connecter.hpp
+1
-0
tcp_listener.cpp
src/tcp_listener.cpp
+1
-2
No files found.
src/ipc_connecter.cpp
View file @
7b105865
...
...
@@ -59,13 +59,9 @@ zmq::ipc_connecter_t::ipc_connecter_t (class io_thread_t *io_thread_,
zmq
::
ipc_connecter_t
::~
ipc_connecter_t
()
{
if
(
wait
)
cancel_timer
(
reconnect_timer_id
);
if
(
handle_valid
)
rm_fd
(
handle
);
if
(
s
!=
retired_fd
)
close
();
zmq_assert
(
!
wait
);
zmq_assert
(
!
handle_valid
);
zmq_assert
(
s
==
retired_fd
);
}
void
zmq
::
ipc_connecter_t
::
process_plug
()
...
...
@@ -76,6 +72,24 @@ void zmq::ipc_connecter_t::process_plug ()
start_connecting
();
}
void
zmq
::
ipc_connecter_t
::
process_term
(
int
linger_
)
{
if
(
wait
)
{
cancel_timer
(
reconnect_timer_id
);
wait
=
false
;
}
if
(
handle_valid
)
{
rm_fd
(
handle
);
handle_valid
=
false
;
}
if
(
s
!=
retired_fd
)
close
();
own_t
::
process_term
(
linger_
);
}
void
zmq
::
ipc_connecter_t
::
in_event
()
{
// We are not polling for incomming data, so we are actually called
...
...
src/ipc_connecter.hpp
View file @
7b105865
...
...
@@ -55,6 +55,7 @@ namespace zmq
// Handlers for incoming commands.
void
process_plug
();
void
process_term
(
int
linger_
);
// Handlers for I/O events.
void
in_event
();
...
...
src/ipc_listener.cpp
View file @
7b105865
...
...
@@ -52,8 +52,7 @@ zmq::ipc_listener_t::ipc_listener_t (io_thread_t *io_thread_,
zmq
::
ipc_listener_t
::~
ipc_listener_t
()
{
if
(
s
!=
retired_fd
)
close
();
zmq_assert
(
s
==
retired_fd
);
}
void
zmq
::
ipc_listener_t
::
process_plug
()
...
...
src/tcp_connecter.cpp
View file @
7b105865
...
...
@@ -69,13 +69,9 @@ zmq::tcp_connecter_t::tcp_connecter_t (class io_thread_t *io_thread_,
zmq
::
tcp_connecter_t
::~
tcp_connecter_t
()
{
if
(
wait
)
cancel_timer
(
reconnect_timer_id
);
if
(
handle_valid
)
rm_fd
(
handle
);
if
(
s
!=
retired_fd
)
close
();
zmq_assert
(
!
wait
);
zmq_assert
(
!
handle_valid
);
zmq_assert
(
s
==
retired_fd
);
}
void
zmq
::
tcp_connecter_t
::
process_plug
()
...
...
@@ -86,6 +82,24 @@ void zmq::tcp_connecter_t::process_plug ()
start_connecting
();
}
void
zmq
::
tcp_connecter_t
::
process_term
(
int
linger_
)
{
if
(
wait
)
{
cancel_timer
(
reconnect_timer_id
);
wait
=
false
;
}
if
(
handle_valid
)
{
rm_fd
(
handle
);
handle_valid
=
false
;
}
if
(
s
!=
retired_fd
)
close
();
own_t
::
process_term
(
linger_
);
}
void
zmq
::
tcp_connecter_t
::
in_event
()
{
// We are not polling for incomming data, so we are actually called
...
...
src/tcp_connecter.hpp
View file @
7b105865
...
...
@@ -53,6 +53,7 @@ namespace zmq
// Handlers for incoming commands.
void
process_plug
();
void
process_term
(
int
linger_
);
// Handlers for I/O events.
void
in_event
();
...
...
src/tcp_listener.cpp
View file @
7b105865
...
...
@@ -61,8 +61,7 @@ zmq::tcp_listener_t::tcp_listener_t (io_thread_t *io_thread_,
zmq
::
tcp_listener_t
::~
tcp_listener_t
()
{
if
(
s
!=
retired_fd
)
close
();
zmq_assert
(
s
==
retired_fd
);
}
void
zmq
::
tcp_listener_t
::
process_plug
()
...
...
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