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

NAME

6       zmq_init - initialise 0MQ context
7

SYNOPSIS

9       void *zmq_init (int io_threads);
10

DESCRIPTION

12       The zmq_init() function initialises a 0MQ context.
13
14       The io_threads argument specifies the size of the 0MQ thread pool to
15       handle I/O operations. If your application is using only the inproc
16       transport for messaging you may set this to zero, otherwise set it to
17       at least one.
18
19       Thread safety. A 0MQ context is thread safe and may be shared among as
20       many application threads as necessary, without any additional locking
21       required on the part of the caller.
22

RETURN VALUE

24       The zmq_init() function shall return an opaque handle to the
25       initialised context if successful. Otherwise it shall return NULL and
26       set errno to one of the values defined below.
27

ERRORS

29       EINVAL
30           An invalid number of io_threads was requested.
31

SEE ALSO

33       zmq(7) zmq_term(3)
34

AUTHORS

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

NOTES

40        1. sustrik@250bpm.com
41           mailto:sustrik@250bpm.com
42
43        2. mato@kotelna.sk
44           mailto:mato@kotelna.sk
45
46
47
480MQ 2.1.4                         03/30/2011                       ZMQ_INIT(3)
Impressum