SNAX/APN Application Programming Manual

The SNALU Interface
SNAX/APN Application Programming Manual420111-001
4-13
SNALU Application Initiates Session with Remote
SLU
Whichever method is used to specify the SLU name in the BIND request, the SLU name
must match the name configured on the VTAM system of the LU accepting the BIND
request for the BIND to succeed.
Response Formats
A SNALU application accepts responses from the SLU in the read portion of a
WRITEREAD call.
Table 4-2 shows how a positive response to a BIND request appears in the application’s
buffer.
For positive responses, the SNALU application need examine only the RTI control bit;
however, you may also want to check the request code and sequence number to verify
which request is being responded to.
Table 4-3 shows how a negative response to a BIND request appears in the applications
buffer.
Table 4-2. Positive Response to BIND Request
Byte Description
0-8 SNAX header
(0-1) X’0100’ TC indicators field: EFI=1
(2-3) X’0000’ Status codes field
(4-5) Sequence number field (whatever was in the sequence number field
of the request that is being responded to)
(6-8) X’EB8000’ RU category: session control
RH indicators: RRI=1, FI=1, DR1I=1
9 request code (X’31’ for BIND)
Table 4-3. Negative Response to BIND Request (page 1 of 2)
Byte Description
0-8 SNAX header
(0-1) X’0100’ TC indicators field: EFI=1
(2-3) X’0000’ Status codes field
(4-5) Sequence number field (whatever was in the sequence number field
of the request that is being responded to)
(6-8) X’EF9000’ RU category: session control
RH indicators: RRI=1, FI=SDI=1, DR1I=RTI=1