home *** CD-ROM | disk | FTP | other *** search
- !
- ! Copyright (c) 1994
- ! 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.
- !
- ! FALNET:
- ! Connect to FALNET
- ! Success: returns %Success
- ! Failure: saves error msg in %FailureMsg and returns %Failure
- !
- !+V
- ! "3.5.2"
- !-V
-
- FailStr = "FALNET not responding";
-
- Start_FALNET:
- show "Connecting to FALNET";
- Tries = 5;
- on cancel goto Return_Cancel;
-
- Wait_FALNET:
- if Tries = 0 goto FALNET_Failure;
- Tries = Tries - 1;
-
- wait
- %mdm_Failure goto NO_Carrier,
- "READY" goto Send_FALNET_Host,
- "User ID:" goto Return_Success
- until 80;
-
- send %CR & %CR & %CR;
- goto Wait_FALNET;
-
- Send_FALNET_Host:
- send "C CIS" & %CR;
- goto Wait_FALNET;
-
- NO_Carrier:
- FailStr = "Modem connection lost";
- FALNET_Failure:
- define %FailureMsg = FailStr;
- exit %Failure;
-
- Return_Cancel:
- exit %Cancel;
-
- Return_Success:
- send %CR;
- exit %Success;
-