1ZMQ_CLOSE(3)                      0MQ Manual                      ZMQ_CLOSE(3)
2
3
4

NAME

6       zmq_close - close 0MQ socket
7

SYNOPSIS

9       int zmq_close (void *socket);
10

DESCRIPTION

12       The zmq_close() function shall destroy the socket referenced by the
13       socket argument. Any outstanding messages physically received from the
14       network but not yet received by the application with zmq_recv() shall
15       be discarded. The behaviour for discarding messages sent by the
16       application with zmq_send() but not yet physically transferred to the
17       network depends on the value of the ZMQ_LINGER socket option for the
18       specified socket.
19
20           Note
21           The default setting of ZMQ_LINGER does not discard unsent messages;
22           this behaviour may cause the application to block when calling
23           zmq_term(). For details refer to zmq_setsockopt(3) and zmq_term(3).
24

RETURN VALUE

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

ERRORS

30       EFAULT
31           The provided socket was not valid (NULL).
32

SEE ALSO

34       zmq_socket(3) zmq_term(3) zmq_setsockopt(3) zmq(7)
35

AUTHORS

37       This 0MQ manual page was written by Martin Sustrik
38       <sustrik@250bpm.com[1]> and Martin Lucina <mato@kotelna.sk[2]>.
39

NOTES

41        1. sustrik@250bpm.com
42           mailto:sustrik@250bpm.com
43
44        2. mato@kotelna.sk
45           mailto:mato@kotelna.sk
46
47
48
490MQ 2.1.4                         03/30/2011                      ZMQ_CLOSE(3)
Impressum