summaryrefslogtreecommitdiff
path: root/man/man3/zmq_term.3
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-11-22 12:05:11 +0100
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-11-22 12:05:11 +0100
commit6602cce9af93539df8f1c43235e7e7130a3df60d (patch)
tree092dc6cd31686f2c4a347bd070d5e1ae82f5e45a /man/man3/zmq_term.3
parented5563f75285197aa0cdbe8a0dc6f80c5bb1f89c (diff)
zmq_init, zmq_term & zmq_strerror man pages added
Diffstat (limited to 'man/man3/zmq_term.3')
-rw-r--r--man/man3/zmq_term.311
1 files changed, 11 insertions, 0 deletions
diff --git a/man/man3/zmq_term.3 b/man/man3/zmq_term.3
index afd3273..14d9da9 100644
--- a/man/man3/zmq_term.3
+++ b/man/man3/zmq_term.3
@@ -4,9 +4,20 @@ zmq_init \- terminates 0MQ context
.SH SYNOPSIS
.B int zmq_term (void *context);
.SH DESCRIPTION
+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.
.SH RETURN VALUE
+Function returns zero is successful. Otherwise it returns -1 and
+sets errno to one of the values below.
.SH ERRORS
+No errors are defined.
.SH EXAMPLE
+.nf
+int rc = zmq_term (context);
+assert (rc == 0);
+.fi
.SH SEE ALSO
.SH AUTHOR
Martin Sustrik <sustrik at 250bpm dot com>