bps_get_domain_data()

Retrieves domain-specific data from the active channel.

Synopsis:

#include <bps/bps.h>
 
BPS_API void* bps_get_domain_data(int domain_id)

Arguments:

domain_id
The domain ID provided by the bps_register_domain() function.

Library:

libbps

Description:

A service calls this function when it needs to retrieve the user data that was previously provided to the channel using the bps_set_domain_data function.

When no data is associated with the domain_id parameter, a NULL value is returned.

Returns:

The user data that was associated with the active channel and the domain_id. If no data is found, a NULL value is returned.