Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | API Reference | awMake | awMakeUniqueSubId
BrokerError awMakeUniqueSubId(
BrokerClient client,
int *sub_id);
The Broker client for whom the subscription ID is to be created.
The subscription ID. This parameter is used for output.
Creates a subscription ID for the specified client and returns it in the output parameter sub_id. This function queries the Broker for the client's open subscriptions and excludes any subscription IDs that are already in use. Use this function for clients that may have subscriptions that are open from a previous session.
After initially calling awMakeUniqueSubId, subsequent calls to awMakeSubId will return unique subscription IDs.
Possible BrokerError major codes
The client has been destroyed or disconnected.
The sub_id parameter is NULL.
See also: