Updated: April 19, 2023 |
Extract the OCB and I/O function pointers associated with the client connection
#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 );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
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.
0 on success, or -1 if an error occurred (errno is set).
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |