Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | Using Broker Clients | Disconnecting and Reconnecting | Disconnecting a Broker client
 
Disconnecting a Broker client
You may disconnect your Broker client by calling the awDisconnectClient function, as shown in the example below. If the Broker client's life cycle is destroy-on-disconnect, the client state and event queue storage will be destroyed by the Broker. If the Broker client's life cycle is explicit-destroy, the client state and event queue storage will be preserved by the Broker until the Broker client reconnects.
The following example illustrates how to disconnect a Broker client.
. . .
err = awDisconnectClient(c);
if (err != AW_NO_ERROR) {
printf("Error on client disconnect%s\n", awErrorToString(err));
return 0;
}
. . .