Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | API Reference | awMake | awMakeUniqueSubId
 
awMakeUniqueSubId
BrokerError awMakeUniqueSubId(
BrokerClient client,
int *sub_id);
client
The Broker client for whom the subscription ID is to be created.
sub_id
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
Meaning
AW_ERROR_INVALID_CLIENT
The client has been destroyed or disconnected.
AW_ERROR_NULL_PARAM
The sub_id parameter is NULL.
See also: