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

NAME

6       zmq_ctx_shutdown - shutdown a 0MQ context
7

SYNOPSIS

9       int zmq_ctx_shutdown (void *context);
10

DESCRIPTION

12       The zmq_ctx_shutdown() function shall shutdown the 0MQ context context.
13
14       Context shutdown will cause any blocking operations currently in
15       progress on sockets open within context to return immediately with an
16       error code of ETERM. With the exception of zmq_close(), any further
17       operations on sockets open within context shall fail with an error code
18       of ETERM. No further sockets can be created using zmq_socket() on a
19       context for which zmq_ctx_shutdown() has been called, it will return
20       and set errno to ETERM.
21
22       This function is optional, client code is still required to call the
23       zmq_ctx_term(3) function to free all resources allocated by zeromq.
24

RETURN VALUE

26       The zmq_ctx_shutdown() function shall return zero if successful.
27       Otherwise it shall return -1 and set errno to one of the values defined
28       below.
29

ERRORS

31       EFAULT
32           The provided context was invalid.
33

SEE ALSO

35       zmq(7) zmq_init(3) zmq_ctx_term(3) zmq_close(3) zmq_setsockopt(3)
36

AUTHORS

38       This page was written by the 0MQ community. To make a change please
39       read the 0MQ Contribution Policy at
40       http://www.zeromq.org/docs:contributing.
41
42
43
440MQ 4.3.4                         01/30/2021               ZMQ_CTX_SHUTDOWN(3)
Impressum