0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-11 07:44:04 +08:00
libzmq/man/man3/zmq_term.3

26 lines
674 B
Groff
Raw Normal View History

2009-11-22 08:47:06 +01:00
.TH zmq_term 3 "" "(c)2007-2009 FastMQ Inc." "0MQ User Manuals"
.SH NAME
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.
2009-11-22 08:47:06 +01:00
.SH RETURN VALUE
Function returns zero is successful. Otherwise it returns -1 and
sets errno to one of the values below.
2009-11-22 08:47:06 +01:00
.SH ERRORS
No errors are defined.
2009-11-22 08:47:06 +01:00
.SH EXAMPLE
.nf
int rc = zmq_term (context);
assert (rc == 0);
.fi
2009-11-22 08:47:06 +01:00
.SH SEE ALSO
2009-11-22 16:51:21 +01:00
.BR zmq_init (3)
.BR zmq_close (3)
2009-11-22 08:47:06 +01:00
.SH AUTHOR
Martin Sustrik <sustrik at 250bpm dot com>