Retrieve an Open Control Block
#include <sys/iofunc.h> #include <sys/resmgr.h> void * resmgr_ocb( resmgr_context_t * ctp);
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The resmgr_ocb() 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().
A pointer to the OCB for the matching binding, or NULL if the binding can't be found or an error occurred.
The OCB can be a structure that you define. By default, it's of type iofunc_ocb_t.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |