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

NAME

6       zmq_ctx_new - create new 0MQ context
7

SYNOPSIS

9       void *zmq_ctx_new ();
10

DESCRIPTION

12       The zmq_ctx_new() function creates a new 0MQ context.
13
14       This function replaces the deprecated function zmq_init(3).
15
16       Thread safety. A 0MQ context is thread safe and may be shared among as
17       many application threads as necessary, without any additional locking
18       required on the part of the caller.
19

RETURN VALUE

21       The zmq_ctx_new() function shall return an opaque handle to the newly
22       created context if successful. Otherwise it shall return NULL and set
23       errno to one of the values defined below.
24

ERRORS

26       EMFILE
27           The limit on the total number of open files has been reached and it
28           wasn’t possible to create a new context.
29
30       EMFILE
31           The limit on the total number of open files in system has been
32           reached and it wasn’t possible to create a new context.
33

SEE ALSO

35       zmq(7) zmq_ctx_set(3) zmq_ctx_get(3) zmq_ctx_term(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/22/2022                    ZMQ_CTX_NEW(3)
Impressum