libzmq/doc/zmq_flush.txt

56 lines
1.5 KiB
Plaintext
Raw Normal View History

2010-02-10 16:18:46 +01:00
zmq_flush(3)
============
NAME
----
2010-03-09 18:47:31 +01:00
zmq_flush - flush messages queued on a socket
2010-02-10 16:18:46 +01:00
SYNOPSIS
--------
2010-03-09 18:47:31 +01:00
*int zmq_flush (void '*socket');*
2010-02-10 16:18:46 +01:00
DESCRIPTION
-----------
2010-03-09 18:47:31 +01:00
The _zmq_flush()_ function shall flush messages previously queued on the socket
referenced by the 'socket' argument. The _zmq_flush()_ function only affects
messages that have been queued on the _message queue_ associated with 'socket'
using the 'ZMQ_NOFLUSH' flag to the _zmq_send()_ function. If no such messages
exist, the function has no effect.
CAUTION: A successful invocation of _zmq_flush()_ does not indicate that the
flushed messages have been transmitted to the network, or even that such a
transmission has been initiated by 0MQ. This function exists merely as a way
for the application programmer to supply a hint to the 0MQ infrastructure that
the queued messages *may* be flushed as a single batch.
2010-02-10 16:18:46 +01:00
RETURN VALUE
------------
2010-03-09 18:47:31 +01:00
The _zmq_flush()_ function shall return zero if successful. Otherwise it shall
2010-03-10 12:19:39 +01:00
return `-1` and set 'errno' to one of the values defined below.
2010-02-10 16:18:46 +01:00
ERRORS
------
*ENOTSUP*::
2010-03-09 18:47:31 +01:00
The _zmq_flush()_ operation is not supported by this socket type.
2010-02-10 16:18:46 +01:00
*EFSM*::
2010-03-09 18:47:31 +01:00
The _zmq_flush()_ operation cannot be performed on this socket at the moment
due to the socket not being in the appropriate state.
2010-02-10 16:18:46 +01:00
SEE ALSO
--------
linkzmq:zmq_send[3]
2010-03-09 18:47:31 +01:00
linkzmq:zmq_socket[3]
linkzmq:zmq[7]
2010-02-10 16:18:46 +01:00
AUTHOR
------
2010-03-09 18:47:31 +01:00
The 0MQ documentation was written by Martin Sustrik <sustrik@250bpm.com> and
Martin Lucina <mato@kotelna.sk>.