Purpose
ha_gs_unsubscribe - Called by a subscriber to unregister as a subscriber for a group
Library
GSAPI Thread-Safe Library (libha_gs_r.a)
GSAPI Library (not thread-safe) (libha_gs.a)
Syntax
#include <ha_gs.h> ha_gs_rc_t ha_gs_unsubscribe( ha_gs_token_t subscriber_token)
Parameters
Description
The ha_gs_unsubscribe subroutine is used by a subscriber to unregister as a subscriber for a group.
Note that subscribers are known only to the Group Services subsystem. The providers of the group and the other subscribers of the group are unaware of any of the subscribers to the group.
Restrictions
The calling process must be a subscriber.
Return Values
If the ha_gs_unsubscribe subroutine is successful, it returns a value of 0 (HA_GS_OK).
Error Values
If the ha_gs_unsubscribe subroutine is unsuccessful, it returns an error number.
The GSAPI error numbers are defined in the ha_gs.h header file. For more information on GSAPI errors, see GSAPI errors (err_gsapi).
Synchronous Errors
The following errors may be returned synchronously by the ha_gs_unsubscribe subroutine:
Asynchronous Errors
None.
Files
ha_gs.h
Prerequisite Information
Related Information
Subroutine: ha_gs_subscribe, ha_gs_init