Commit 8ba1d3c8 authored by Martin Lucina's avatar Martin Lucina

Documentation: zmq_term() and ETERM for 2.0.7

parent 74a03dfd
......@@ -55,7 +55,7 @@ The requested 'address' was not local.
*ENODEV*::
The requested 'address' specifies a nonexistent interface.
*ETERM*::
The associated context was terminted.
The 0MQ 'context' associated with the specified 'socket' was terminated.
EXAMPLE
......
......@@ -53,7 +53,7 @@ The requested 'transport' protocol is not supported.
*ENOCOMPATPROTO*::
The requested 'transport' protocol is not compatible with the socket type.
*ETERM*::
The associated context was terminted.
The 0MQ 'context' associated with the specified 'socket' was terminated.
EXAMPLE
......
......@@ -199,7 +199,6 @@ The requested option _option_name_ is unknown, or the requested _option_len_ or
_option_value_ is invalid, or the size of the buffer pointed to by
_option_value_, as specified by _option_len_, is insufficient for storing the
option value.
*ETERM*::
The 0MQ 'context' associated with the specified 'socket' was terminated.
......
......@@ -93,11 +93,9 @@ ERRORS
*EFAULT*::
At least one of the members of the 'items' array refers to a 'socket' belonging
to a different application thread.
*ENOTSUP*::
At least one of the members of the 'items' array refers to a 'socket' whose
associated 0MQ 'context' was initialised without the 'ZMQ_POLL' flag.
*ETERM*::
The associated context was terminted.
At least one of the members of the 'items' array refers to a 'socket' whose
associated 0MQ 'context' was terminated.
EXAMPLE
......
......@@ -213,7 +213,6 @@ ERRORS
*EINVAL*::
The requested option _option_name_ is unknown, or the requested _option_len_ or
_option_value_ is invalid.
*ETERM*::
The 0MQ 'context' associated with the specified 'socket' was terminated.
......
......@@ -16,9 +16,23 @@ DESCRIPTION
-----------
The _zmq_term()_ function terminates the 0MQ context 'context'.
If there are still sockets open within 'context' at the time _zmq_term()_ is
called the call will succeed but the actual shutdown of 'context' will be
delayed until the last socket within it is closed.
If there are no longer any sockets open within 'context' at the time
_zmq_term()_ is called then 'context' shall be shut down and all associated
resources shall be released immediately.
Otherwise, the following applies:
* 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
within 'context' shall fail with an error code of ETERM.
* The actual shutdown of 'context', and release of any associated resources,
*shall be delayed* until the last socket within it is closed with
_zmq_close()_.
RETURN VALUE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment