|
|
|
|
REGISTER_INDICATION_SINK registers the NOF application to receive indications of a particular type; for details of the SNAP-IX NOF indications, see NOF Indications. The application specifies the required type of indication by its opcode parameter; an application can register more than once to accept multiple indication types. Each time an event occurs for which the application has requested indications (for example a change in the configuration of the application's target node or a change in the status of a DLC), SNAP-IX sends the appropriate indication message to the application.
A NOF_STATUS_INDICATION, which indicates status changes for the target node or file, may be returned to an application that has registered for any type of indication. For more information, see NOF_STATUS_INDICATION.
This verb must always be issued using the asynchronous NOF API entry point, including a callback routine (for more information about the NOF API entry points, see Asynchronous Entry Point: nof_async ). SNAP-IX uses this callback routine to return the requested indications to the application.
This verb may be issued to different targets depending on the type of indications required, as follows:
To register for SNA network file indications, the target must be the sna.net file.
To register for server indications, no target is required; the application must specify a null target handle.
To register for configuration indications relating to domain resources, the target must be the domain configuration file.
To register for configuration indications relating to node resources, or to register for any other indications, the target may be either a running node or an inactive node on a computer where the SNAP-IX software is running.
typedef struct register_indication_sink
{
AP_UINT16 opcode; /* verb operation code */
unsigned char reserv2; /* reserved */
unsigned char format; /* reserved */
AP_UINT16 primary_rc; /* primary return code */
AP_UINT32 secondary_rc; /* secondary return code */
AP_UINT32 proc_id; /* reserved */
AP_UINT16 queue_id; /* reserved */
AP_UINT16 indication_opcode; /* opcode of indication to be sunk */
} REGISTER_INDICATION_SINK;
The application supplies the following parameters:
The opcode parameter of the indication to be returned. SNAP-IX will send this indication to the application's callback routine every time the indication is generated.
To receive configuration indications, specify the value
To receive SNA
network file indications, issue the verb using a target handle that identifies
the sna.net file, and specify the value
For all other indications, specify the opcode value for the required indication. For more information, see the descriptions of individual indications in NOF Indications.
If the verb executes successfully, SNAP-IX returns the following parameters:
AP_OK
Not used.
If the verb does not execute because of a parameter error, SNAP-IX returns the following parameters:
AP_PARAMETER_CHECK
Possible values are:
One of the following has occurred:
The indication_opcode parameter did not match the opcode of any of the SNAP-IX NOF API indications.
The indication_opcode parameter specified an indication type that does not apply to the specified target. If the target handle identifies the domain configuration file, only configuration indications are valid; if the target handle identifies the sna.net file, only SNA network file indications are valid; and if the target handle specifies a running node, all indications except SNA network file indications are valid.
The indication_opcode parameter was set to a reserved value.
The application issued REGISTER_INDICATION_SINK using the synchronous NOF entry point. This verb must use the asynchronous entry point.
Common Return Codes lists further secondary return codes associated with AP_PARAMETER_CHECK, which are common to all NOF verbs.
If the verb does not execute successfully because the local node does not support the function associated with the specified indication, SNAP-IX returns the following parameters:
The local node does not support the specified indication. For details of the support required for each indication, see the description of each indication in NOF Indications.
Common Return Codes lists further combinations of primary and secondary return codes that are common to all NOF verbs.
|
|
|
|
|