Previous Page Contents Page Next Page

4.3 MS_STATUS

SNAP-IX sends this status indication to a registered application (either MDS-level or NMVT-level) to inform the application of one of the following changes in the status of the SNAP-IX system:

SNAP-IX returns the MS_STATUS indication on the callback routine that the application supplied to the REGISTER_MS_APPLICATION or REGISTER_NMVT_APPLICATION verb. For more information about the requirements for this callback routine, see The Callback Routine Specified on the ms_async Entry Point.

After the application receives the MS_STATUS indication, SNAP-IX rejects all subsequent verbs using the relevant target handle, except for DISCONNECT_MS_NODE.

4.3.1 VCB Structure

typedef struct ms_status
{
   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            status;                 /* status being reported      */
   AP_UINT32            dead_target_handle;     /* Handle of dead connection  */
   unsigned char        reserv1[32];            /* reserved                   */

} MS_STATUS; 

4.3.2 Parameters

SNAP-IX includes the following parameters when it sends the MS_STATUS indication to the MS application:

opcode

AP_MS_STATUS

status

AP_TARGET_HAS_DIED

This value indicates that the connected node or the SNAP-IX software is no longer running.

dead_target_handle

A null value for this parameter indicates that the SNAP-IX software on the local computer (where the application is running) has been stopped. All target handles that the application was using are disconnected and are no longer valid.

A non-null value for this parameter indicates the target handle of the failed node. The application should issue DISCONNECT_MS_NODE for this target handle to free the resources associated with it.

The application can attempt to reconnect to a target node by periodically issuing CONNECT_MS_NODE; this call will fail until the target node or the local SNAP-IX software is restarted.

Previous Page Contents Page Top of Page Next page