Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | Using Broker Clients | Creating and Destroying Broker Clients | Destroying a Broker Client
 
Destroying a Broker Client
The example below contains another excerpt from the publish1.c sample application that shows the use of the awDestroyClient function. The only parameter passed to this function is the BrokerClient reference that was obtained by the earlier awNewBrokerClient function call. When a Broker client is destroyed, it event queue and all other client state information will also be destroyed.
The following example illustrates how to destroy a Broker client:
. . .
err = awDestroyClient(c);
if (err != AW_NO_ERROR) {
printf("Error on client destroy\n%s\n", awErrorToString(err));
return 0;
}
. . .