WAN Manager SPI Programming Guide

WAN Manager SPI Programming Guide540013-001
2-1
2
Communicating With the WAN
Manager Process
This section describes the processing of SPI commands and responses of the WAN
subsystem through the WAN manager process ($ZZWAN).
Using SPI for Sending Commands and
Processing Responses
The management application program uses SPI procedures to send a command. For
more information, see the SPI Programming Manual.
Sending a Command Message
To send an SPI command:
1. Open the internal SPI module of the WAN manager using the FILE_OPEN_ call.
2. Define the SPI buffer space with a predetermined numeric value (for example,
ZWAN-VAL-MAXBUFLEN).
3. Call the SPI procedure SSINIT to initialize the SPI buffer:
buffer
is the reference to the SPI buffer.
buffer-length
is the value of the ZSPI-TKN-BUFLEN.
ssid
is the reference to ZSPI-TKN-SSID.
SSINIT (buffer
, buffer-length
, ssid
, header-type
, [ command ]
, [ object-type ]
, [ max-resp ]
, [ server-version ]
, [ checksum ]
, [ max-field-version ])