Poster of Linux kernelThe best gift for a Linux geek
ZMQ_TERM

ZMQ_TERM

Section: 0MQ Manual (3) Updated: 10/15/2010
Local index Up
 

NAME

zmq_term - terminate 0MQ context  

SYNOPSIS

int zmq_term (void *context);  

DESCRIPTION

The zmq_term() function terminates the 0MQ context context.

If there are no longer any sockets open within context at the time zmq_term() is called then context shall be shut down and all associated resources shall be released immediately.

Otherwise, the following applies:

• The zmq_term() function shall return immediately.

• Any blocking operations currently in progress on sockets open within context shall return immediately with an error code of ETERM.

• With the exception of zmq_close(), any further operations on sockets open within context shall fail with an error code of ETERM.

• The actual shutdown of context, and release of any associated resources, shall be delayed until the last socket within it is closed with zmq_close().
 

RETURN VALUE

The zmq_term() function shall return zero if successful. Otherwise it shall return -1 and set errno to one of the values defined below.  

ERRORS

EFAULT

The provided context was not valid (NULL).
 

SEE ALSO

zmq(7) zmq_init(3)  

AUTHORS

The 0MQ documentation was written by Martin Sustrik <m[blue]sustrik@250bpm.comm[][1]> and Martin Lucina <m[blue]mato@kotelna.skm[][2]>.  

NOTES

1.
sustrik@250bpm.com
mailto:sustrik@250bpm.com
2.
mato@kotelna.sk
mailto:mato@kotelna.sk


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO
AUTHORS
NOTES

This document was created by man2html, using the manual pages.
Time: 21:59:29 GMT, April 16, 2011