home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 March
/
VPR9603A.ISO
/
guiterm
/
niftyman
/
sv32.sc_
/
sv32.sc
Wrap
Text File
|
1995-11-09
|
2KB
|
84 lines
!
! Copyright (c) 1995
! by NIFTY Corporation, Tokyo, Japan
! 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 NIFTY-Serve.
!
! FENICS-ROAD 3 V.32:
! Connect to FENICS-ROAD 3 V.32
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
!
!+V
! "3.5"
!-V
!show "FENICS-ROAD 3 V.32 に接続されました";
Tries = 2;
on cancel goto Return_Cancel;
wait until 10;
Wait_HOST:
if Tries = 0 goto Return_Failure;
Tries = Tries - 1;
wait
"*" goto Send_NIF,
%mdm_Failure goto Return_Failure
until 100;
! send %CR;
goto Wait_HOST;
Send_NIF:
send "C NIF" & %CR;
Tries = 3;
Wait_FENICS3:
if Tries = 0 goto Return_Failure;
Tries = Tries - 1;
wait
"Enter Connection-ID" goto Send_FENICS3_Host,
%mdm_Failure goto Return_Failure
until 80;
goto Wait_FENICS3;
Send_FENICS3_Host:
wait until 10;
! show "サインアップを開始します";
send "PSG" & %CR;
Tries = 5;
Wait_ENQ:
if Tries = 0 goto Return_Failure;
Tries = Tries - 1;
wait
%ENQ goto Send_SIGNUP,
%NAK goto Return_Failure
%mdm_Failure goto Return_Failure
until 80;
goto Wait_ENQ;
Send_SIGNUP:
wait until 10;
! show "サインアップの登録データを送信しています";
signup : Result;
! show "サインアップの登録データの送信が終了しました";
if Result = %Success goto Return_Success;
if Result = %Cancel goto Return_Cancel;
Return_Failure:
define %FailureMsg = "FENICS-ROAD 3 が反応しません";
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
wait until 10;
exit %Success;