home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Buyer 1998 May
/
dpcb0598.iso
/
Internet
/
Compu
/
CSI26UK
/
SCRIPTS.LIB
/
TTNNET.SCR
< prev
next >
Wrap
Text File
|
1996-09-23
|
1KB
|
53 lines
!
! Copyright (c) 1996
! 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.
!
! TTN-NET:
! Connect to TTN-NET
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
!
!+V
! "3.9.1"
!-V
Attempts = 5;
TTN_Address = "CIS";
on cancel goto Return_Cancel;
show "Connecting to TTN-Net";
Wait_TTN:
if Attempts = 0 goto Return_Failure;
Attempts = Attempts - 1;
wait
"@" goto Send_Address,
"Host Name" goto Return_Success,
"User ID" goto Return_Success,
%mdm_Failure goto Return_Failure
until 180;
send %CR;
goto Wait_TTN;
Send_Address:
show "Sending CompuServe Address...";
wait until 10;
send TTN_Address & %CR;
goto Wait_TTN;
Return_Failure:
define %FailureMsg = "TTN-Net not responding";
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
send %CR;
exit %Success;