QNX Developer Support
![]() |
![]() |
![]() |
![]() |
asyncmsg_connect_attr()
Return the original connection attributes
Synopsis:
#include <sys/neutrino.h>
#include <sys/asyncmsg.h>
int asyncmsg_connect_attr;
(int coid, struct _asyncmsg_connection_attr *old_attr,
const struct _asyncmsg_connection_ attr *new_attr);
Arguments:
- coid
- The connection ID.
- old_attr
- The attributes for the original connection.
- new_attr
- The attributes for the new connection.
Library:
libasyncmsg
Use the -l asyncmsg option to qcc to link against this library.
Description:
The asyncmsg_connect_attr() function returns the original connection attributes in the buffer pointed to by old_attr if old_attr is not NULL and sets the connection attributes to the contents of the buffer pointed to by new_attr if new_attr is not NULL.
Returns:
EOK on success; or -1 if an error occurred (errno is set).
Errors:
- EINVAL
- The connection specified by coid doesn't exist.
Classification:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
See also:
asyncmsg_channel_create(), asyncmsg_channel_destroy(), asyncmsg_connect_attach(), asyncmsg_connect_detach(), asyncmsg_flush(), asyncmsg_free(), asyncmsg_get(), asyncmsg_malloc(), asyncmsg_put(), asyncmsg_putv()
Asynchronous Messaging Technote
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)
