Zeromq interface function: Zmq_init-initializes the ZMQ environment context

Source: Internet
Author: User
Tags creative commons attribution

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.