ZeroMQ Official Address: Http://api.zeromq.org/4-0:zmq_init
Zmq_init (3) ØMQ Manual-ømq/3.2.5
Name
Zmq_init- Initialize the zmq Environment Context
Synopsis
void *zmq_init (int io_threads);
Description
The Zmq_init () function Initializes a zmq Environment Context.
io_threads parameter specifies this ZMQ in the context of the environment I/O The size of the thread pool to manipulate. If your application uses only the InProc method for message transmission, you can set this parameter to 0, or at least 1.
Thread Safety
The ZMQ environment context is thread-safe and can be shared as much as needed, without the need to lock on the calling side.
This function has been deprecated and replaced by zmq_ctx_new (3) .
Return value
The function zmq_init () execution successfully returns an opaque context handle . Otherwise , NULL is returned and set errno to the value specified below.
Errors
EINVAL
the value specified by the Io_threads parameter is not available.
See Also
ZMQ (7) zmq_term (3)
Authors
THISØMQ manual page was written by Martin Sustrik <[email Protected]> and Martin Lucina
<[email Protected]>.
WEB site design and content is copyright (c) 2007-2012 Imatix Corporation. Contact us for professional support. Site content licensed under the Creative Commons attribution-share alike 3.0 License. ØMQ is copyright (c) Copyright (c) 2007-2012 Imatix Corporation and Contributors. ØMQ is free software licensed under the LGPL. ØMQ, ZeroMQ, and 0MQ are trademarks of Imatix Corporation. Terms of Use - Privacy
Policy
More ZeroMQ API:http://www.cnblogs.com/fengbohello/p/4230135.html
Translation: The Storm
Mail: [Email protected]
Zeromq interface function: Zmq_init-initializes the ZMQ environment context