SNAX Connection Manager (SNAX/CM) Manual

Creating a User-Written Server Process
SNAX/CM Server
4–8 097842 Tandem Computers Incorporated
-- 5 = calling-out
-- 6 = connected
INT pu^type; -- 1 = Switched Floating,
-- 2 = Permanently Subordinate
STRUCT puname( VARSTRING );
STRUCT linename( VARSTRING );
STRUCT portname( VARSTRING );
STRUCT callstring( VARSTRING );
STRUCT xidstring( VARSTRING );
STRUCT alias^lu( VARSTRING );
INT alias^lu^count;
STRING data[ 0:-1 ]; -- variable data for VARSTRINGs
END;
STRUCT Status^Reply( * );
BEGIN
STRUCT line( full^line^status^reply );
STRUCT pu( pu^status^reply ) = line;
STRUCT port( port^status^reply ) = line;
END;
STRUCT Common^Reply(*);
BEGIN
INT Rc;
INT Ferror;
END;
Creating a User-
Written Server Process
Figure 4-2 shows the interfaces to the server process found in the example server code
named SXCMSV, including XID validation and call string validation. The SXCMSV
server includes four different options:
Option 1 starts a process that runs TACL.
Option 2 starts an Exchange server.
Options 3 and 4 are shells that you can use to create a customized server.
Without writing any code, the first two options are already available. You can modify
these example options, or you can delete the two provided and write all new ones. If
you want to use a third or fourth option, you must write the code yourself to issue a
request that creates such a server process.