Flush the asynchronous messages sent through a connection
|Asynchronous messaging is an experimental feature; for information about the use of experimental software, see the Commercial Software License Agreement (CSLA) or Partner Software License Agreement (PSLA) in the Licensing area of our website, http://www.qnx.com/legal/licensing/.|
#include <sys/asyncmsg.h> int asyncmsg_flush( int coid, int mode );
- The connection ID of the connection you want to flush.
- 0, or ASYNCMSG_FLUSH_NONBLOCK if you don't want the function to block.
Use the -l asyncmsg option to qcc to link against this library.
The asyncmsg_flush() function flushes the messages sent through the connection specified by the connection ID coid argument.
If you don't specify a mode of ASYNCMSG_FLUSH_NONBLOCK, the function doesn't return until all the existing messages are delivered to the receive side.
EOK, or -1 if an error occurred (errno is set).
- The connection specified by coid doesn't exist.
asyncmsg_channel_create(), asyncmsg_channel_destroy(), asyncmsg_connect_attach(), asyncmsg_connect_attr(), asyncmsg_connect_detach(), asyncmsg_free(), asyncmsg_get(), asyncmsg_malloc(), asyncmsg_put(), asyncmsg_putv()
Asynchronous Messaging Technote