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. ...@@ -55,7 +55,7 @@ The requested 'address' was not local.
*ENODEV*:: *ENODEV*::
The requested 'address' specifies a nonexistent interface. The requested 'address' specifies a nonexistent interface.
*ETERM*:: *ETERM*::
The associated context was terminted. The 0MQ 'context' associated with the specified 'socket' was terminated.
EXAMPLE EXAMPLE
......
...@@ -53,7 +53,7 @@ The requested 'transport' protocol is not supported. ...@@ -53,7 +53,7 @@ The requested 'transport' protocol is not supported.
*ENOCOMPATPROTO*:: *ENOCOMPATPROTO*::
The requested 'transport' protocol is not compatible with the socket type. The requested 'transport' protocol is not compatible with the socket type.
*ETERM*:: *ETERM*::
The associated context was terminted. The 0MQ 'context' associated with the specified 'socket' was terminated.
EXAMPLE EXAMPLE
......
...@@ -199,7 +199,6 @@ The requested option _option_name_ is unknown, or the requested _option_len_ or ...@@ -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_ 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_, as specified by _option_len_, is insufficient for storing the
option value. option value.
*ETERM*:: *ETERM*::
The 0MQ 'context' associated with the specified 'socket' was terminated. The 0MQ 'context' associated with the specified 'socket' was terminated.
......
...@@ -93,11 +93,9 @@ ERRORS ...@@ -93,11 +93,9 @@ ERRORS
*EFAULT*:: *EFAULT*::
At least one of the members of the 'items' array refers to a 'socket' belonging At least one of the members of the 'items' array refers to a 'socket' belonging
to a different application thread. 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*:: *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 EXAMPLE
......
...@@ -213,7 +213,6 @@ ERRORS ...@@ -213,7 +213,6 @@ ERRORS
*EINVAL*:: *EINVAL*::
The requested option _option_name_ is unknown, or the requested _option_len_ or The requested option _option_name_ is unknown, or the requested _option_len_ or
_option_value_ is invalid. _option_value_ is invalid.
*ETERM*:: *ETERM*::
The 0MQ 'context' associated with the specified 'socket' was terminated. The 0MQ 'context' associated with the specified 'socket' was terminated.
......
...@@ -16,9 +16,23 @@ DESCRIPTION ...@@ -16,9 +16,23 @@ DESCRIPTION
----------- -----------
The _zmq_term()_ function terminates the 0MQ context 'context'. The _zmq_term()_ function terminates the 0MQ context 'context'.
If there are still sockets open within 'context' at the time _zmq_term()_ is If there are no longer any sockets open within 'context' at the time
called the call will succeed but the actual shutdown of 'context' will be _zmq_term()_ is called then 'context' shall be shut down and all associated
delayed until the last socket within it is closed. 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 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