zmq_term.3 681 Bytes
Newer Older
1
.TH zmq_term 3 "" "(c)2007-2010 iMatix Corporation" "0MQ User Manuals"
2 3 4 5 6
.SH NAME
zmq_init \- terminates 0MQ context
.SH SYNOPSIS
.B int zmq_term (void *context);
.SH DESCRIPTION
7 8 9 10
Destroys 0MQ context. However, if there are still any sockets open within
the context,
.IR zmq_term
succeeds but shutdown of the context is delayed till the last socket is closed.
11
.SH RETURN VALUE
12 13
Function returns zero is successful. Otherwise it returns -1 and
sets errno to one of the values below.
14
.SH ERRORS
15
No errors are defined.
16
.SH EXAMPLE
17 18 19 20
.nf
int rc = zmq_term (context);
assert (rc == 0);
.fi
21
.SH SEE ALSO
22 23
.BR zmq_init (3)
.BR zmq_close (3)
24 25
.SH AUTHOR
Martin Sustrik <sustrik at 250bpm dot com>