SNAX Connection Manager (SNAX/CM) Manual
User Process Procedures
SNAX/CM Sample Server
C–10 097842 Tandem Computers Incorporated
VARSTRING Structures
Following are the structures used in messages from the SNAX/CM server interface. If
the structure contains variable-length information, it should use the VARSTRING
structure to be an offset and length to it. A VARSTRING structure is defined as
follows:
STRUCT VARSTRING (*);
BEGIN
 INT OFFSET; ! Byte offset to data. It is the offset
 ! from the outermost structure that the
 ! varstring is contained in (usually the
 ! base of the message).
 INT LENGTH; ! Byte length of data, 0 = not present.
END; -- struct varstring
STRUCT proc^buffer^template (*);
 BEGIN
 STRING base[ 0:-1];
 INT(32) proc^queue^ptr;
 INT lu^index;
 INT type;
 INT file1[ 0:11 ];
 INT file2[ 0:11 ];
 STRUCT parmstring( VARSTRING );
 STRING data[ 0:-1 ];
 END;
STRUCT connected^buffer^template (*);
 BEGIN
 STRING base[ 0:-1];
 INT(32) connected^queue^ptr;
 INT type;
 INT linename[ 0:3 ];
 INT portname[ 0:17 ]
 STRUCT parm( VARSTRING );
 STRING data[ 0:-1 ];
 END;
User Procedure LITERALS
Following are the user procedure literals for the server:
LITERAL
 true = -1, ! boolean for ON
 false = 0, ! boolean for OFF
 fecontinue = 70; ! continue file operation










