|This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.|
Disassociate an OCB from an open request
#include <sys/resmgr.h> int resmgr_unbind( resmgr_context_t * ctp);
- A pointer to a resmgr_context_t structure that the resource-manager library uses to pass context information between functions.
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The resmgr_unbind() function removes a binding in the internal resources manager database (which maps client connections to server OCB pointers). The binding must previously have been bound by resmgr_open_bind()
The binding is reference counted; if multiple connections are established with the same binding, the binding is freed only when the last connection is removed.
You should use MsgInfo() to fill the info structure in ctp with information about which client mapping to retrieve.
- The binding can't be located in the resource manager table.
Writing a Resource Manager chapter of the Programmer's Guide