This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Establish a connection between a process and a channel
#include <sys/neutrino.h> #include <sys/asyncmsg.h> int asyncmsg_connect_attach; (uint32_t nd, pid_t pid, int chid, unsigned index, unsigned flags, const struct _asyncmsg_connection_attr *attr);
libasyncmsg
Use the -l asyncmsg option to qcc to link against this library.
The asyncmsg_connect_attach() function establishes a connection between the calling process and a channel identified by the arguments nd, pid and chid. The system returns the first available connection ID starting at the value specified by the index argument.
A connection ID on success; or -1 if an error occurred (errno is set).
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
asyncmsg_channel_create(), asyncmsg_channel_destroy(), asyncmsg_connect_attr(), asyncmsg_connect_detach(), asyncmsg_flush(), asyncmsg_free(), asyncmsg_get(), asyncmsg_malloc(), asyncmsg_put(), asyncmsg_putv()
Asynchronous Messaging Technote