This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Create an asynchronous message channel
#include <errno.h> #include <stdlib.h> #include <sys/neutrino.h> #include <sys/asyncmsg.h> int asyncmsg_channel_create; (unsigned flags, mode_t mode, size_t buffer_size, unsigned max_num_buffer, const struct sigevent *ev int (*recvbuf_callback) (size_t bufsize, unsigned num_bufs, void *bufs[], int flags));
libasyncmsg
Use the -l asyncmsg option to qcc to link against this library.
The asyncmsg_channel_create() function creates an asynchronous message channel.
The channel ID of the newly created channel, or -1 if an error has occurred (errno is set).
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
asyncmsg_channel_destroy(), asyncmsg_connect_attach(), asyncmsg_connect_attr(), asyncmsg_connect_detach(), asyncmsg_flush(), asyncmsg_free(), asyncmsg_get(), asyncmsg_malloc(), asyncmsg_put(), asyncmsg_putv()
Asynchronous Messaging Technote