1ZMQ_TERM(3)                       0MQ Manual                       ZMQ_TERM(3)
2
3
4

NAME

6       zmq_term - terminate 0MQ context
7

SYNOPSIS

9       int zmq_term (void *context);
10

DESCRIPTION

12       The zmq_term() function shall terminate the 0MQ context context.
13
14       Context termination is performed in the following steps:
15
16        1. Any blocking operations currently in progress on sockets open
17           within context shall return immediately with an error code of
18           ETERM. With the exception of zmq_close(), any further operations on
19           sockets open within context shall fail with an error code of ETERM.
20
21        2. After interrupting all blocking calls, zmq_term() shall block until
22           the following conditions are satisfied:
23
24           ·   All sockets open within context have been closed with
25               zmq_close().
26
27           ·   For each socket within context, all messages sent by the
28               application with zmq_send() have either been physically
29               transferred to a network peer, or the socket’s linger period
30               set with the ZMQ_LINGER socket option has expired.
31
32       For further details regarding socket linger behaviour refer to the
33       ZMQ_LINGER option in zmq_setsockopt(3).
34

RETURN VALUE

36       The zmq_term() function shall return zero if successful. Otherwise it
37       shall return -1 and set errno to one of the values defined below.
38

ERRORS

40       EFAULT
41           The provided context was not valid (NULL).
42
43       EINTR
44           Termination was interrupted by a signal. It can be restarted if
45           needed.
46

SEE ALSO

48       zmq(7) zmq_init(3) zmq_close(3) zmq_setsockopt(3)
49

AUTHORS

51       This 0MQ manual page was written by Martin Sustrik
52       <sustrik@250bpm.com[1]> and Martin Lucina <mato@kotelna.sk[2]>.
53

NOTES

55        1. sustrik@250bpm.com
56           mailto:sustrik@250bpm.com
57
58        2. mato@kotelna.sk
59           mailto:mato@kotelna.sk
60
61
62
630MQ 2.1.4                         03/30/2011                       ZMQ_TERM(3)
Impressum