resmgr_ocb_iofuncs()
QNX SDP8.0C Library ReferenceAPIDeveloper
Extract the OCB and I/O function pointers associated with the client connection
Synopsis:
#include <sys/iofunc.h>
#include <sys/resmgr.h>
int resmgr_ocb_iofuncs( resmgr_context_t * const ctp,
void** ocb,
const resmgr_io_funcs_t** iofuncs );
Arguments:
- ctp
- A pointer to a resmgr_context_t structure that the resource-manager library uses to pass context information between functions.
- ocb
- NULL, or a pointer to a location where the function can store the OCB pointer.
- iofuncs
- NULL, or a pointer to a location where the function can store the I/O functions pointer.
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:
The resmgr_ocb_iofuncs() function combines the functionality of resmgr_ocb() and resmgr_iofuncs() into a single operation. Given a resmgr_context_t, this function queries the internal resource manager database, which maps client connections to the server Open Control Block (OCB), to retrieve the OCB pointer that was previously bound using resmgr_open_bind(), and the I/O functions. It stores pointers to them in the locations pointed to by ocb and iofuncs, respectively.
Returns:
0 on success, or -1 if an error occurred (errno is set).
Classification:
Safety: | |
---|---|
Cancellation point | No |
Signal handler | No |
Thread | Yes |
Page updated: