2023-10-21 01:50:38 +02:00
|
|
|
= zmq_ctx_new(3)
|
2012-03-19 19:41:20 -05:00
|
|
|
|
|
|
|
|
2023-10-21 01:50:38 +02:00
|
|
|
== NAME
|
2012-03-19 19:41:20 -05:00
|
|
|
zmq_ctx_new - create new 0MQ context
|
|
|
|
|
|
|
|
|
2023-10-21 01:50:38 +02:00
|
|
|
== SYNOPSIS
|
2012-03-19 19:41:20 -05:00
|
|
|
*void *zmq_ctx_new ();*
|
|
|
|
|
|
|
|
|
2023-10-21 01:50:38 +02:00
|
|
|
== DESCRIPTION
|
2012-03-19 19:41:20 -05:00
|
|
|
The _zmq_ctx_new()_ function creates a new 0MQ 'context'.
|
|
|
|
|
2023-10-21 01:50:38 +02:00
|
|
|
This function replaces the deprecated function xref:zmq_init.adoc[zmq_init]
|
2012-03-19 19:41:20 -05:00
|
|
|
|
|
|
|
.Thread safety
|
|
|
|
A 0MQ 'context' is thread safe and may be shared among as many application
|
|
|
|
threads as necessary, without any additional locking required on the part of
|
|
|
|
the caller.
|
|
|
|
|
|
|
|
|
2023-10-21 01:50:38 +02:00
|
|
|
== RETURN VALUE
|
2012-03-19 19:41:20 -05:00
|
|
|
The _zmq_ctx_new()_ function shall return an opaque handle to the newly created
|
|
|
|
'context' if successful. Otherwise it shall return NULL and set 'errno' to one
|
|
|
|
of the values defined below.
|
|
|
|
|
|
|
|
|
2023-10-21 01:50:38 +02:00
|
|
|
== ERRORS
|
2020-11-09 22:08:51 +01:00
|
|
|
*EMFILE*::
|
|
|
|
The limit on the total number of open files has been reached and it
|
|
|
|
wasn't possible to create a new context.
|
|
|
|
*EMFILE*::
|
|
|
|
The limit on the total number of open files in system has been reached
|
|
|
|
and it wasn't possible to create a new context.
|
2012-03-19 19:41:20 -05:00
|
|
|
|
|
|
|
|
2023-10-21 01:50:38 +02:00
|
|
|
== SEE ALSO
|
2023-11-03 11:36:47 +01:00
|
|
|
* xref:zmq.adoc[zmq]
|
|
|
|
* xref:zmq_ctx_set.adoc[zmq_ctx_set]
|
|
|
|
* xref:zmq_ctx_get.adoc[zmq_ctx_get]
|
|
|
|
* xref:zmq_ctx_term.adoc[zmq_ctx_term]
|
2012-03-19 19:41:20 -05:00
|
|
|
|
|
|
|
|
2023-10-21 01:50:38 +02:00
|
|
|
== AUTHORS
|
2013-04-11 18:53:02 +02:00
|
|
|
This page was written by the 0MQ community. To make a change please
|
2023-11-22 23:18:23 +01:00
|
|
|
read the 0MQ Contribution Policy at <https://zeromq.org/how-to-contribute/>.
|