Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

resmgr_iofuncs()

Extract the I/O function pointers associated with client connections

Synopsis:

#include <sys/resmgr.h>

const resmgr_io_funcs_t * resmgr_iofuncs(
   resmgr_context_t * ctp;
   struct _msg_info * info);

Arguments:

ctp
A pointer to a resmgr_context_t structure that the resource-manager library uses to pass context information between functions.
info
A pointer to the _msg_info structure that describes the binding to the client. You should fill this structure by calling MsgInfo().

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The resmgr_iofuncs() function retrieves the I/O function callout table associated with the client connections described by binding specified by info.

Note that context information pointed to by ctp actually contains info.

Returns:

A pointer to the resmgr_io_funcs_t I/O function callout table, or NULL if the binding can't be found or an error occurs.

Errors:

ESRCH
The connection can't be located in the resource manager's table.
ENOMEM
There is no memory available for the operation.
EINVAL
Invalid arguments were used.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes

See also:

_msg_info, MsgInfo(), resmgr_io_funcs_t, _resmgr_ocb(), resmgr_open_bind(), resmgr_unbind()