-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathBBSTEX.PAS
131 lines (110 loc) · 3.97 KB
/
BBSTEX.PAS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÜ
³ Û
³ Malte Genesis/BBS Cortex Û
³ dition Chantal pour Mode R‚el/IV - Version 1.2 Û
³ 1997/01/02 Û
³ Û
³ Tous droits r‚serv‚s par les Chevaliers de Malte (C) Û
³ Û
ÀÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÛ
Nom du programmeur
ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
Sylvain Maltais
Description
ÍÍÍÍÍÍÍÍÍÍÍ
Cette unit‚ est en quelque sorte une entˆte de d‚finition pour la
communication par modem.
}
Unit BBSTex;
{ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ}
INTERFACE
{ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ}
Uses Systex;
Const
MaxUsers=100; { Nombre maximal d'usager chargeable en m‚moire }
MaxLoginTry=3; { Nombre maximal de tentative de connexion avant d'abandonner }
KermitNone=0; { Protocol Kermit sans format }
KermitAscii=1; { Protocol Kermit en ASCII }
KermitBinary=2; { Protocol Kermit en Binaire }
TransTimeVal=1800.0; { Valeur du temps de transfert }
SingleFileProtocol:Array[1..trsMax]of Boolean=(True,True,True,No,No,No,No,True,True,No,No,True,True,True,True,True);
DefaultTransferType:Byte=trsXmodemChk;
{Code de retour du protocol}
protNone=0; { Rien }
protReceiveError=1; { Erreur de r‚ception }
protCarrierDrop=2; { Raccrocher }
protAltRStop=3; { Arrˆter par Alt+R }
protOk=255; { Tous va bien }
Type
DefaultProtocolSetting=Record
SectorSize:SmallInt;
Header:Boolean;
DoXonXoff:Boolean;
End;
DataProtocolRec=Record
ID:Byte;
SingleFile:Boolean;
TN:String[2];
Default:DefaultProtocolSetting;
Name:String;
End;
{Enregistrement d'un dialogue}
UserRec=Record
Alias:Array[0..18]of Chr;{Alias (Surnom)}
FirstName:Array[0..18]of Chr;{Pr‚nom}
LastName:Array[0..18]of Chr;{Nom de famille}
PassWd:Array[0..15]of Chr;{Mot de passe}
Phone:Array[0..20]of Chr;{Num‚ro de t‚l‚phone}
Level:Array[0..4]of Chr;{Niveau de s‚curit‚}
CRLF:Array[0..1]of Chr;{Retour de ligne}
End;
{Enregistrement utilise pour les protocols par modem}
Prots=Record
ExitMsg, { Code de sortie }
KermitFileTypeVar:Byte; { Type de fichier Kermit }
ReceiveScriptNames,SendScriptNames:Array[1..16]of PChr;
Default:DefaultProtocolSetting;
Config:Set of (AsciiTranslate,HonorXoffYModem);
{ Ascii }
AutoStripHighBit,AddLF,AsciiUseCtrlZ,AsciiSendAsis,AsciiSendBlank:Boolean;
AsciiCharDelay,AsciiLineDelay,AsciiLineSize:Integer;
AsciiPacingChar:Char;
AsciiCRLFStr:String[2];
{ XModem }
AltRPressed,SendingFiles,CrcUsed,DisplayTime,DoAcks,DoWXModem,DoSeaLink:Boolean;
Base:Record
SectorNumber:SmallInt;
SendErrors:SmallInt;
SectorCount:SmallInt;
StopSend:Boolean;
AltSPressed:Boolean;
End;
MenuTitle,XFileName:String;
Blocks2Send,Time2Send,SavedTime2Send,StartTime:LongInt;
EndTime,TimePerBlock:LongInt;
TransferProtocol:Byte;
XmodemCharWait,XmodemBlockWait,XmodemAckWait,XmodemMaxErrors,
MenuLength:Integer;
SectorSize:SmallInt;
DownSizeYmodem,UseYmodemHeader:Boolean;
TX,TY:Byte;
W:Window;
LineCount,ByteCount:Long;
DefaultTransferType:Byte;
CloseComm4Dos:Boolean;
TName:String;
SectorData:Array[0..2047]of Char;
TrTab:Array[Char]of Char;
{ XModem }
StopReceive:Boolean;
XmodemParitySave:Char;
XmodemStopSave,XmodemBitsSave:Integer;
XHandle:Hdl;
NullFileName:Boolean;
End;
{ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ}
IMPLEMENTATION
{ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ}
{ Il n'y a pas de code...}
{ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ}
END.