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
085b7090
Commit
085b7090
authored
Oct 30, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation for zmq_close and zmq_term fixed.
Signed-off-by:
Martin Sustrik
<
sustrik@250bpm.com
>
parent
3d8eb071
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
18 deletions
+15
-18
zmq_close.txt
doc/zmq_close.txt
+6
-6
zmq_term.txt
doc/zmq_term.txt
+9
-12
No files found.
doc/zmq_close.txt
View file @
085b7090
...
@@ -15,12 +15,11 @@ SYNOPSIS
...
@@ -15,12 +15,11 @@ SYNOPSIS
DESCRIPTION
DESCRIPTION
-----------
-----------
The _zmq_close()_ function shall destroy the socket referenced by the 'socket'
The _zmq_close()_ function shall destroy the socket referenced by the 'socket'
argument. All active connections on the socket shall be terminated and
argument. Any outstanding messages physically received from the network but not
resources associated with the socket shall be released. Any outstanding
yet received by the application with _zmq_recv()_ shall also be dropped. As for
messages sent with _zmq_send()_ but not yet physically sent to the network
the messages sent with _zmq_send()_ but not yet passed to the network, 0MQ
shall be dropped. Likewise, any outstanding messages physically received from
will try to send them in the background after _zmq_close()_ returns. Time spent
the network but not yet received by the application with _zmq_recv()_ shall
attempting can be set using _ZMQ_LINGER_ socket option.
also be dropped.
RETURN VALUE
RETURN VALUE
...
@@ -39,6 +38,7 @@ SEE ALSO
...
@@ -39,6 +38,7 @@ SEE ALSO
--------
--------
linkzmq:zmq_socket[3]
linkzmq:zmq_socket[3]
linkzmq:zmq_term[3]
linkzmq:zmq_term[3]
linkzmq:zmq_setsockopt[3]
linkzmq:zmq[7]
linkzmq:zmq[7]
...
...
doc/zmq_term.txt
View file @
085b7090
...
@@ -16,23 +16,18 @@ DESCRIPTION
...
@@ -16,23 +16,18 @@ DESCRIPTION
-----------
-----------
The _zmq_term()_ function terminates the 0MQ context 'context'.
The _zmq_term()_ function terminates the 0MQ context 'context'.
If there are no longer any sockets open within 'context' at the time
It does so in following steps:
_zmq_term()_ is called then 'context' shall be shut down and all associated
resources shall be released immediately.
Otherwise, the following applies:
* It causes any blocking operations currently in progress on sockets open within
'context' to exit immediately with an error code of ETERM.
* The _zmq_term()_ function shall return immediately.
* Any blocking operations currently in progress on sockets open within
'context' shall return immediately with an error code of ETERM.
* With the exception of _zmq_close()_, any further operations on sockets open
* With the exception of _zmq_close()_, any further operations on sockets open
within 'context' shall fail with an error code of ETERM.
within 'context' shall fail with an error code of ETERM.
* The actual shutdown of 'context', and release of any associated resources,
* After iterrupting all blocking calls, _zmq_term()_ blocks until all sockets
*shall be delayed* until the last socket within it is closed with
open within the context are closed using _zmq_close()_ and either all the
_zmq_close()_.
pending outbound messages are pushed to the network or ZMQ_LINGER period
expires for individual sockets.
RETURN VALUE
RETURN VALUE
...
@@ -51,6 +46,8 @@ SEE ALSO
...
@@ -51,6 +46,8 @@ SEE ALSO
--------
--------
linkzmq:zmq[7]
linkzmq:zmq[7]
linkzmq:zmq_init[3]
linkzmq:zmq_init[3]
linkzmq:zmq_close[3]
linkzmq:zmq_setsockopt[3]
AUTHORS
AUTHORS
...
...
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