SNAX Connection Manager (SNAX/CM) Manual
SNAX/CM Message Structures
SNAX/CM Server
4–4 097842 Tandem Computers Incorporated
Structure When a Line Is
Rejected
The following structure is used when a connection request is rejected. The return code
tells why the command was rejected; the file-system error provides more information
(if non-zero).
STRUCT USER^INTERFACE100to199 (*);
BEGIN
STRING base[ 0:-1 ];
INT message^type; ! 101 = Connect Rejected
! 102 = Disconnect Rejected
! 103 = Enable Rejected
INT rc; ! Return code
INT ferror; ! File-system error
STRUCT linename(VARSTRING); ! Linename length and
! offset
STRUCT portname(VARSTRING); ! Pointer to the X25AM
! subdevice name
STRUCT puname(VARSTRING); ! Pointer to the PU name
STRING data[0:-1]; ! Alias LU name, X25AM SU
! name, and PU name
END;
Example Using Message
Structures
The following example illustrates how the message structure appears if SNAX/CM
sends a CONNECT message to a server using STRUCT USER^INTERFACE1.
Using alias LU name $SNAP123.#A112341 and port name
\SNADEV.$X25AM1.#SU1, the following structure is issued:
STRUCT USER^INTERFACE1;
INT MESSAGE^TYPE; ! 0: byte offset
STRING base[ 0:-1 ];
INT LUCOUNT; ! 2:
INT RC; ! 4: Return code
INT FERROR; ! 6: File system error
STRUCT LUName (VARSTRING); ! 8: Pointer to Alias LU name
STRUCT portname(VARSTRING); !12: Pointer to X25AM SU name
STRUCT puname(VARSTRING); !16: Pointer to PU name
String data[0:-1]; !20: Alias LU name, X25AM SU
name, and PU name
End; ! struct msg
In this example:
USER^INTERFACE1.LUNAME.OFFSET value is 20 and
USER^INTERFACE1.LUNAME.LENGTH is 17
USER^INTERFACE1.PORTNAME.OFFSET value is 37 and
USER^INTERFACE1.PORTNAME.LENGTH is 20.
USER^INTERFACE1.PUNAME.OFFSET value is 57 and
USER^INTERFACE1.PUNAME.LENGTH is 4.
USER^INTERFACE1.DATA is
"$SNAP123.#A112341\SNADEV.$X25AM1.#SU1#PU1"