home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fonts Pro 2002
/
kf_2002.bin
/
compsrv
/
scripts.lib
/
CSIRNET.SCR
< prev
next >
Wrap
Text File
|
1995-12-05
|
2KB
|
87 lines
!
! 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.
!
! CSIR-Net:
! Connect to CSIR-Net
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
!
!+V
! "3.8.1"
!-V
CSIRnet_ID = "901040oz3u";
CIS_Address = "C10634679";
NUI_Tries = 5;
Tries = 2;
on cancel goto Return_Cancel;
show "Connecting to CSIR-Net";
wait until 50;
Wait_NUI:
if NUI_Tries = 0 goto CSIRnet_Failure;
NUI_Tries = NUI_Tries - 1;
send "X.28" & %CR;
wait
"NUI?" goto send_CSIRnet_password,
%mdm_Failure goto CSIRnet_Logon_Failure
until 100;
goto Wait_NUI;
send_CSIRnet_password:
send CSIRnet_ID;
show "Waiting for TRIPLE-X...";
Wait_CSIRnet:
if Tries = 0 goto CSIRnet_Logon_Failure;
Tries = Tries - 1;
wait
"NUI?" goto send_CSIRnet_password,
"SELECT ?" goto send_A,
"FOR MAIN INDEX" goto send_CIS_Address,
"NO CIRCUIT" goto send_CIS_Address,
%mdm_Failure goto CSIRnet_Logon_Failure
until 350;
send %CR;
goto Wait_CSIRnet;
send_A:
send "A";
goto Wait_CSIRnet;
send_CIS_Address:
show "Sending CompuServe Address...";
wait until 15;
send CIS_Address & %CR;
wait
%mdm_Failure goto CSIRnet_Logon_Failure,
"User ID:" goto Return_Success,
"Host Name:" goto Return_Success
until 50;
goto Return_Success;
CSIRnet_Failure:
define %FailureMsg = "CSIR-Net: No Response to X.28";
exit %Failure;
CSIRnet_Logon_Failure:
define %FailureMsg = "CSIR-Net: Logon Failure";
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
exit %Success;