home *** CD-ROM | disk | FTP | other *** search
- !
- ! Copyright (c) 1995
- ! by CompuServe Incorporated, Columbus, Ohio
- !
- ! The information in this software is subject to change without
- ! notice and should not be construed as a commitment by CompuServe.
- !
- ! SCITOR:
- ! Connect to SCITOR
- ! Success: returns %Success
- ! Failure: saves error msg in %FailureMsg and returns %Failure
- !
- !+V
- ! "3.6"
- !-V
-
- show "Connecting to Scitor";
- Tries = 3;
- MoreTries = 5;
- on cancel goto Return_Cancel;
- send "." & %CR;
-
- Wait_SCITOR:
- if Tries = 0 goto SCITOR_Failure;
- Tries = Tries - 1;
- wait
- "SITA NETWORK: " goto Send_NUI,
- %mdm_Failure goto SCITOR_Failure
- until 80;
-
- send "." & %CR;
- goto Wait_SCITOR;
-
- Send_NUI:
- show "Sending Scitor address...";
- wait until 10;
- send "NUI 19730001" & %CR;
-
- Wait_Again:
- if MoreTries = 0 goto SCITOR_Failure;
- MoreTries = MoreTries - 1;
-
- wait
- "Host Name:" goto Return_Success,
- "SITA NETWORK: password" goto Send_Password,
- "SITA NETWORK: network" goto Send_Identifier,
- %mdm_Failure goto SCITOR_Failure
- until 50;
-
- send %CR;
- goto Wait_Again;
-
- Send_Password:
- show "Sending Scitor Password...";
- wait until 10;
- send "KHS9NE" & %CR;
- goto Wait_Again;
-
- Send_Identifier:
- show "Sending SCITOR Identifier...";
- wait until 10;
- send "2111855" & %CR;
- goto Wait_Again;
-
- SCITOR_Failure:
- define %FailureMsg = "Scitor not responding";
- exit %Failure;
-
- Return_Cancel:
- exit %Cancel;
-
- Return_Success:
- exit %Success;
-