-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgestruct.pas
667 lines (533 loc) · 25.2 KB
/
gestruct.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
Unit GeStruct;
Interface
Uses
MkGlobT;
(*
** gestruct.inc
**
** System data file definitions for GEcho 1.20.b9+
**
** Copyright (C) 1991-1995 Gerard J. van der Land. All rights reserved.
**
** All information in this document is subject to change at any time
** without prior notice.
**
** Last revision: 09-Aug-95
**
** Strings are NUL padded and NUL terminated arrays of char type.
** Path names are back slash ('\') terminated.
*)
const
GE_THISREV = $0002; (* System file revision level *)
GE_MAJOR = 1; (* GEcho major revision version *)
GE_MINOR = 20; (* GEcho minor revision version *)
AKAS = 32; (* Main + AKAs *)
OLDAKAS = 11; (* Not used *)
OLDUPLINKS = 10; (* Not used *)
OLDGROUPS = 26; (* Not used *)
USERS = 10; (* User names *)
MAXAREAS = 10000; (* Area records *)
MAXCONNECTIONS = 500; (* Connections per area *)
MAXGROUPS = 256; (* Group records *)
MAXNODES = 5000; (* Node records *)
MAXVIAS = 60; (* Pack "Via" records *)
MAXROUTES = 640; (* Pack "Routed node" records *)
GROUPBYTES = ((MAXGROUPS + 7) div 8);
(* --- Datatypes *)
type
dword = longint; (* Borland Pascal does not support longword *)
str9 = array[0.. 8] of char;
str13 = array[0..12] of char;
str17 = array[0..16] of char;
str20 = array[0..19] of char;
str21 = array[0..20] of char;
str30 = array[0..29] of char;
str31 = array[0..30] of char;
str36 = array[0..35] of char;
str51 = array[0..50] of char;
str53 = array[0..52] of char;
str61 = array[0..60] of char;
str65 = array[0..64] of char;
ADDRESS = record
zone : word;
net : word;
node : word;
point : word;
end;
GROUPS = array[0..GROUPBYTES-1] of byte;
(* --- Log levels *)
const
LOG_INBOUND = $0001; (* Inbound activities *)
LOG_OUTBOUND = $0002; (* Outbound activities *)
LOG_PACKETS = $0004; (* Inbound packet info *)
LOG_UNEXPECT = $0008; (* Extended packet info *)
LOG_AREAMGR = $0010; (* Unexpected passwords *)
LOG_EXTPKTINFO = $0040; (* AreaMgr messages *)
LOG_NETEXPORT = $0100; (* Exporting of netmail *)
LOG_NETIMPORT = $0200; (* Importing of netmail *)
LOG_NETPACK = $0400; (* Packing of netmail *)
LOG_NETMOVED = $0800; (* Moving Sent/Rcvd mail *)
LOG_STATISTICS = $2000; (* GEcho's statistics *)
LOG_MBUTIL = $4000; (* MBUTIL's activities *)
LOG_DEBUG = $8000; (* DEBUG: All of the above *)
(* --- Log styles *)
LOG_FD = 0; (* FrontDoor *)
LOG_BINK = 1; (* BinkleyTerm *)
LOG_QUICK = 2; (* QuickBBS *)
LOG_DBRIDGE = 3; (* D'Bridge *)
(* --- Setup option bits *)
NOKILLNULL = $0001; (* Don't kill null netmail messages while tossing *)
RESCANOK = $0002; (* Allow %RESCAN *)
KEEPREQS = $0004; (* Keep AreaMgr requests *)
NONODEADD = $0008; (* Don't automatically add NodeMgr records *)
USEHMBBUF = $0020; (* Use Hudson buffers *)
KEEPNET = $0040; (* Don't use Kill/Sent on exported netmail *)
KEEPMGR = $0080; (* Don't use Kill/Sent on MGR receipts *)
NORRQS = $0100; (* Ignore Return receipt Requests *)
KILLDUPES = $0200; (* Kill duplicate messages *)
DOS32BIT = $0400; (* Run 32-bit DOS version on 386+ machines *)
NOCRSTRIP = $0800; (* Don't strip Soft-CRs *)
REMOVEJUNK = $1000; (* Remove "Re:" junk from JAM subjects *)
NOAUTODISC = $2000; (* Don't automatically disconnect empty PT areas *)
NOCHECKEND = $4000; (* Don't check for valid end of archives *)
SETPVT = $8000; (* Set Pvt on imported netmail messages *)
(* --- Extra option bits *)
NOCHKDEST = $0001; (* Don't check packet destination *)
AUTOCREAT = $0002; (* Automatically create message bases *)
PAUSEEOK = $0004; (* Allow %PAUSE *)
NOTIFYOK = $0008; (* Allow %NOTIFY OFF *)
ADDALLOK = $0010; (* Allow %+* *)
PWDOK = $0020; (* Allow %PWD *)
PKTPWDOK = $0040; (* Allow %PKTPWD *)
NOBADPKTS = $0080; (* Don't notify sysop about BAD/DST/LOC packets *)
PKTPRGONCE = $0100; (* Run PKT program only before the first PKT *)
CREATEBUSY = $0200; (* Create busy flags *)
COMPRESSOK = $0400; (* Allow %COMPRESS *)
FROMOK = $0800; (* Allow %FROM *)
REDIR2NUL = $1000; (* Redirect output of external utilities to NUL *)
NOEXPAND = $2000; (* Don't expand filenames of file attaches *)
LOCALEXPT = $4000; (* Export netmail to our own AKA *)
OPUSDATES = $8000; (* Use Opus style binary date/time stamps *)
(* --- Compression types *)
PR_ARC = 0; (* Compressed mail files created by ARC or PKPAK *)
PR_ARJ = 1; (* Compressed mail files created by ARJ *)
PR_LZH = 2; (* Compressed mail files created by LHA *)
PR_PAK = 3; (* Compressed mail files created by PAK *)
PR_ZIP = 4; (* Compressed mail files created by PKZIP *)
PR_ZOO = 5; (* Compressed mail files created by ZOO *)
PR_SQZ = 6; (* Compressed mail files created by SQZ *)
PR_UC2 = 7; (* Compressed mail files created by UC II *)
PR_RAR = 8; (* Compressed mail files created by RAR *)
PR_PKT = 10; (* Uncompressed PKT files *)
(* --- Locking method *)
LOCK_OFF = 0; (* Deny Write (Exclusive) *)
LOCK_RA101 = 1; (* RemoteAccess 1.01 (SHARE) *)
LOCK_RA111 = 2; (* RemoteAccess 1.11 (SHARE) *)
(* --- Semaphore mode *)
SEMAPHORE_OFF = 0; (* Don't use semaphores *)
SEMAPHORE_FD = 1; (* FrontDoor 2.1x *)
SEMAPHORE_IM = 2; (* InterMail 2.2x *)
SEMAPHORE_DB = 3; (* D'Bridge 1.5x *)
SEMAPHORE_BT = 4; (* BinkleyTerm 2.5x *)
SEMAPHORE_MD = 5; (* MainDoor *)
(* --- Check user name *)
CHECK_NOT = 0; (* Don't check if user name exists *)
CHECK_USERFILE = 1; (* User file (USERS.BBS) *)
CHECK_USERINDEX = 2; (* User index (USERSIDX.BBS / NAMEIDX.BBS) *)
(* --- Mailer type *)
MAILER_FD = 0; (* FrontDoor *)
MAILER_DB = 1; (* D'Bridge *)
MAILER_BT = 2; (* BinkleyTerm *)
(* --- BBS type *)
BBS_RA111 = 0; (* RemoteAccess 1.1x *)
BBS_RA200 = 1; (* RemoteAccess 2.xx *)
BBS_QUICK275 = 2; (* QuickBBS 2.7x *)
BBS_SBBS116 = 3; (* SuperBBS 1.16 *)
BBS_WC400 = 4; (* Wildcat! 4.x *)
(* --- Change tear line *)
TEAR_NO = 0; (* No *)
TEAR_DEFAULT = 1; (* Replace default *)
TEAR_CUSTOM = 2; (* Replace custom *)
TEAR_EMPTY = 3; (* Replace empty *)
TEAR_REMOVE = 4; (* Remove *)
type
OLDUPLINK = record
address : AddrType; (* Uplink address *)
areafix : str9; (* AreaFix program *)
password : str17; (* AreaFix password *)
filename : str13; (* "Forward List" filename *)
unused : array[1..6] of byte;
options : byte; (* See --- Uplink options bits *)
filetype : byte; (* 0 = Random, 1 = "<areaname> <description>" *)
groups : dword; (* Nodes must have one of these groups *)
origin : byte; (* Origin AKA *)
end;
AKAMATCH = record
zone : word;
net : word;
aka : byte;
end;
COLORSET = record
bg_char : byte;
headerframe : byte;
headertext : byte;
background : byte;
bottomline : byte;
bottomtext : byte;
bottomkey : byte;
errorframe : byte;
errortext : byte;
helpframe : byte;
helptitle : byte;
helptext : byte;
helpfound : byte;
winframe : byte;
wintitle : byte;
winline : byte;
wintext : byte;
winkey : byte;
windata : byte;
winselect : byte;
inputdata : byte;
exportonly : byte;
importonly : byte;
lockedout : byte;
end;
(* --- SETUP.GE structure *)
SETUP_GE = record
sysrev : word; (* Must contain GE_THISREV *)
options : word; (* Options bits, see --- Setup option bits *)
autorenum : word; (* Auto renumber value *)
maxpktsize : word; (* Maximum packet size, 0 = unlimited *)
logstyle : byte; (* See --- Log styles *)
oldnetmailboard : byte; (* Netmail board, must be zero now *)
oldbadboard : byte; (* Where bad echomail is stored (0 = path) *)
olddupboard : byte; (* Where duplicates are stored (0 = path) *)
recoveryboard : byte; (* Recovery board (1-200, 0 = delete) *)
filebuffer : byte; (* Size (in KB) of MBU file I/O buffer *)
days : byte; (* Days to keep old mail around *)
swapping : byte; (* Swapping method *)
compr_default : byte; (* Default compresion type *)
pmcolor : array[1..15] of byte; (* Not used *)
oldaka : array[0..OLDAKAS-1] of AddrType; (* Main address and AKAs *)
oldpointnet : array[0..OLDAKAS-1] of word; (* Pointnets for all addresses *)
gekey : dword; (* GEcho registration key *)
mbukey : dword; (* MBUTIL registration key *)
geregto : str51; (* Text used to generate the GEcho key *)
mburegto : str51; (* Text used to generate the MBUTIL key *)
username : array[0..USERS-1] of str36; (* User names *)
hmbpath : str53; (* Hudson message base path *)
mailpath : str53; (* Netmail path *)
inbound_path : str53; (* Where incoming compressed mail is stored *)
outbound_path : str53; (* Where outgoing compressed mail is stored *)
echotoss_file : str65; (* The ECHOTOSS.LOG used for Squish areas *)
nodepath : str53; (* Not used *)
areasfile : str65; (* AREAS.BBS style file *)
logfile : str65; (* GEcho/MBUTIL log file *)
mgrlogfile : str65; (* AreaMgr log file *)
swap_path : str53; (* Swap path *)
tear_line : str31; (* Tearline to be placed by MBUTIL Export *)
originline : array[0..19] of str61; (* Origin lines *)
compr_prog : array[0..9] of str13; (* Compression program filenames *)
compr_switches : array[0..9] of str20; (* Compression program switches *)
decompr_prog : array[0..9] of str13; (* Decompression program filenames *)
decompr_switches : array[0..9] of str20; (* Decompression program switches *)
oldgroups : array[0..25] of str21; (* Descriptions of area groups *)
lockmode : byte; (* See --- Locking method *)
secure_path : str53; (* From which secure PKTs are tossed *)
rcvdmailpath : str53; (* Directory to which Rcvd netmail is moved *)
sentmailpath : str53; (* Directory to which Sent netmail is moved *)
semaphorepath : str53; (* Where FD rescan files are stored *)
version_major : byte; (* Major GEcho version *)
version_minor : byte; (* Minor GEcho version *)
semaphore_mode : byte; (* See --- Semaphore mode *)
badecho_path : str53; (* Where sec. violating and unknown mail is stored *)
mailer_type : byte; (* See --- Mailer type *)
loglevel : word; (* See --- Log level *)
akamatch : array[0..19] of AKAMATCH; (* AKA matching table *)
mbulogfile : str65; (* MBUTIL log file *)
maxqqqs : word; (* Max. number of QQQ info stored in memory *)
maxqqqopen : byte; (* Not used *)
maxhandles : byte; (* Max. number of files used by GEcho *)
maxarcsize : word; (* Max. archive size, 0 = unlimited *)
delfuture : word; (* Days to delete messages in the future, 0 = disable *)
extraoptions : word; (* See --- Extra option bits *)
firstboard : byte; (* Not used *)
reserved1 : word; (* Reserved *)
copy_persmail : word; (* Not used *)
oldpersmailboard : array[0..USERS-1] of byte; (* Personal mail board (0 = path) *)
old_public_groups : dword; (* Public groups (bits 0-25) *)
dupentries : word; (* Number of duplicate entries in ECHODUPE.GE *)
oldrcvdboard : byte; (* Where Rcvd netmail is moved to (0 = path) *)
oldsentboard : byte; (* Where Sent netmail is moved to (0 = path) *)
oldakaboard : array[0..OLDAKAS-1] of byte; (* Netmail boards for AKAs *)
olduserboard : array[0..USERS-1] of byte; (* Netmail boards for system users, 255 = use AKA board *)
reserved2 : byte; (* Reserved *)
uplink : array[0..OLDUPLINKS-1] of OLDUPLINK; (* Not used *)
persmail_path : str53; (* Not used *)
outpkts_path : str53; (* Where outbound packets are temp. stored *)
compr_mem : array[0..9] of word; (* Memory needed for compression programs *)
decompr_mem : array[0..9] of word; (* Memory needed for decompression programs *)
pwdcrc : dword; (* CRC-32 of access password, -1L = no password *)
default_maxmsgs : word; (* Maximum number of messages (Purge) *)
default_maxdays : word; (* Maximum age of non-Rcvd messages (Purge) *)
gus_prog : str13; (* General Unpack Shell program filename *)
gus_switches : str20; (* GUS switches *)
gus_mem : word; (* Memory needed for GUS *)
default_maxrcvddays : word; (* Maximum age of Rcvd messages (Purge) *)
checkname : byte; (* See --- Check user name *)
maxareacachesize : byte; (* Area cache size, 0 .. 64 KB *)
inpkts_path : str53; (* Where inbound mail packets should be stored *)
pkt_prog : str13; (* Called before each tossed mail packet *)
pkt_switches : str20; (* Command line switches *)
pkt_mem : word; (* Memory needed *)
maxareas : word; (* Maximum number of areas *)
maxconnections : word; (* Maximum number of connections per area *)
maxnodes : word; (* Maximum number of nodes *)
default_minmsgs : word; (* Minimum number of messages (Purge) *)
bbs_type : byte; (* See --- BBS type *)
decompress_ext : byte; (* 0 = 0-9, 1 = 0-F, 2 = 0-Z *)
reserved3 : byte; (* Reserved *)
change_tearline : byte; (* See --- Change tear line *)
prog_notavail : word; (* Bit 0-9, 1 = program not available *)
gscolor : COLORSET; (* GSETUP color set, See COLORSET structure *)
reserved4 : array[1..9] of byte; (* Reserved *)
aka : array[0..AKAS-1] of AddrType; (* Main address and AKAs *)
pointnet : array[0..AKAS-1] of word; (* Pointnets for all addresses *)
akaarea : array[0..AKAS-1] of word; (* AKA netmail areas *)
userarea : array[0..USERS-1] of word; (* Netmail areas for system users, 0=don't import, 65535 = use AKA board *)
persmailarea : array[0..USERS-1] of word; (* Personal mail area (0 = don't copy) *)
rcvdarea : word; (* Rcvd netmail area (0 = don't move) *)
sentarea : word; (* Sent netmail area (0 = don't move) *)
badarea : word; (* Where bad echomail is stored (0 = path) *)
reserved5 : word; (* Not used *)
jampath : str53; (* JAM message base path *)
userbase : str53; (* User base path *)
dos4gw_exe : str65; (* DOS4GW.EXE protected mode run time file *)
public_groups : GROUPS; (* Public groups (bits 0-255) *)
maxgroupconnections : word; (* Maximum number of connections per group *)
maxmsgsize : word; (* Maximum message size (64-1024 kB) *)
diskspace_threshold : word; (* Amount of free disk space that causes packing *)
pktsort : byte; (* 0 = No, 1 = Area, 2 = Area + Date/Time *)
wildcatpath : Str53; (* Wildcat! home path *)
end;
(***************************************************************************)
(* --- Area option bits *)
const
IMPORTSB = $0001; (* Import SEEN-BY lines to message base *)
SECURITY = $0002; (* Only accept mail from nodes in connections list *)
PASSTHRU = $0004; (* Mail is not imported, only forwarded *)
VISIBLE = $0008; (* Area is visible for anyone in AreaMgr's %LIST *)
REMOVED = $0010; (* Area should be removed by GSETUP Pack *)
NOUNLINK = $0020; (* Do not allow users to unlink this area *)
TINYSB = $0040; (* Tiny SEEN-BYs with only nodes in connections list *)
PVT = $0080; (* Private bits are preserved and are not stripped *)
CHECKSB = $0100; (* Use SEEN-BYs for duplicate prevention *)
NOSLEEP = $0200; (* Do not allow users to pause this area *)
SDM = $0400; (* Area is stored in *.MSG format *)
HIDESB = $0800; (* Hide imported SEEN-BY lines *)
NOIMPORT = $1000; (* AreaMgr will set new nodes to Export-Only *)
DELFUTURE = $2000; (* Del messages dated in the future *)
NOTIFIED = $4000; (* Sysop notified that area was disconnected *)
UPLDISC = $8000; (* Disconnected from uplink (only for PT areas) *)
(* --- Extra area option bits *)
NODUPECHK = $01; (* Don't do duplicate checking for this area *)
NOLINKING = $02; (* Don't do reply chain linking for this area *)
HIDDEN = $04; (* Area is hidden for everyone *)
(* --- Area type *)
geECHOMAIL = 0;
geNETMAIL = 1;
geLOCAL = 2;
geBADECHO = 3;
gePERSONAL = 4;
geNUM_TYPES = 5;
(* --- Area format *)
FORMAT_PT = 0; (* Passthru *)
FORMAT_HMB = 1; (* Hudson Message Base *)
FORMAT_SDM = 2; (* *.MSG base *)
FORMAT_JAM = 3; (* Joaquim-Andrew-Mats message base proposal *)
FORMAT_PCB = 4; (* PCBoard 15.0 *)
FORMAT_SQUISH = 5; (* Squish 2.0 *)
FORMAT_WC = 6; (* Wildcat! 4.0 *)
NUM_FORMATS = 7;
(* --- AREAFILE.GE header *)
type
AREAFILE_HDR = record
hdrsize : word; (* sizeof(AREAFILE_HDR) *)
recsize : word; (* sizeof(AREAFILE_GE) *)
maxconnections : word; (* Maximum number of entries in connections list *)
end;
(* --- AREAFILE.GE record *)
AREAFILE_GE = record
name : str51; (* Area name, must be uppercase, no spaces *)
comment : str61; (* Description of the topics discussed in area *)
path : str51; (* Location where *.MSG files are stored *)
originline : str61; (* Custom origin line, used if origlinenr = 0 *)
areanumber : word; (* Area number (1-200 = Hudson) *)
group : char; (* Group (0-255) *)
options : word; (* See --- Area options bits *)
originlinenr : byte; (* Origin line (1-20, 0 = custom) *)
pkt_origin : byte; (* Address for the packet/Origin line (0-31) *)
seenbys : dword; (* Addresses (bits 0-31) to add to the SEEN-BY *)
maxmsgs : word; (* Maximum number of messages (MBUTIL Purge) *)
maxdays : word; (* Maximum age of non-Rcvd messages (MBUTIL Purge) *)
maxrcvddays : word; (* Maximum age of Rcvd messages (MBUTIL Purge) *)
areatype : byte; (* See --- Area type *)
areaformat : byte; (* See --- Area format *)
extraoptions : byte; (* See --- Extra area option bits *)
end;
(* --- Connection entry status bits *)
const
CONN_NOIMPORT = $01; (* Don't accept mail from this node *)
CONN_NOEXPORT = $02; (* Don't forward mail to this node *)
CONN_PAUSE = $04; (* Temporary don't send this area to this node *)
CONN_NOUNLINK = $08; (* Don't allow this node to disconnect *)
CONN_ISUPLINK = $10; (* Node is uplink for this area *)
(* --- Connections list entry *)
type
CONNECTION = record
address : AddrType;
status : byte;
end;
(* --- AREAFILE.GEX record *)
AREAFILE_GEX = record
crc32 : longint; (* CRC-32 on areaname *)
areanumber : word; (* Area number (1-200 = Hudson) *)
offset : longint; (* File offset of record in AREAFILE.GE *)
end;
(***************************************************************************)
(* --- Group option bits *)
const
GROUP_REMOVED = $01; (* Group record has been deleted *)
GROUP_ALWAYS = $02; (* Unconditionally forward requests *)
(* --- GRPFILE.GE header *)
type
GRPFILE_HDR = record
hdrsize : word; (* sizeof(GRPFILE_HDR) *)
recsize : word; (* sizeof(GRPFILE_GE) *)
arearecsize : word; (* sizeof(AREAFILE_GE) *)
maxconnections : word; (* Maximum number of entries in connections list *)
end;
(* --- GRPFILE.GE record *)
type
GRPFILE_GE = record
options : byte; (* See --- Group option bits *)
filename : str65; (* "Forward List" filename *)
filetype : byte; (* 0 = Random, 1 = "<areaname> <description>" *)
end;
(* --- GRPFILE.GEX record *)
GRPFILE_GEX = record
address : AddrType; (* Address of the uplink *)
offset : longint; (* File offset of record in GRPFILE.GE *)
group : byte; (* Group (0-255) *)
end;
(***************************************************************************)
(* --- Status:
$0000 = None
$0002 = Crash
$0200 = Hold
$FFFF = Removed entry
*)
(* --- Node option bits *)
const
REMOTEMAINT = $0001; (* Allow node to use %FROM *)
ALLOWRESCAN = $0002; (* Allow node to use %RESCAN *)
FORWARDREQ = $0004; (* Allow node to forward AreaMgr requests *)
MAIL_DIRECT = $0008; (* Use Direct status for mail archives *)
NONOTIFY = $0010; (* Don't send Notify list *)
PACKNETMAIL = $0020; (* Pack netmail for this node *)
CHKPKTPWD = $0040; (* Check packet password (auto-enabled) *)
MGR_DIRECT = $0080; (* Use Direct status for AreaMgr messages *)
ARCMAIL = $0100; (* Use ARCmail 0.60 naming for out-of-zone mail *)
FORWARDPKTS = $0200; (* Forward packets to this node *)
DAILY_MAIL = $0400; (* Create a new mail archive every day *)
NOPKTPWDCHK = $0800; (* Disable check packet password *)
(* --- Uplink option bits *)
UPLINK_ADDPLUS = $04; (* Add '+' prefix *)
(* --- Unknown areas *)
UNKNOWN_BADECHO = 0;
UNKNONW_ADDAREA = 1;
UNKNOWN_DISCONNECT = 2;
UNKNOWN_KILLMSGS = 3;
(* --- NODEFILE.GE header *)
type
NODEFILE_HDR = record
hdrsize : word; (* sizeof(NODEFILE_HDR) *)
recsize : word; (* sizeof(NODEFILE_GE) *)
end;
(* --- NODEFILE.GE record *)
NODEFILE_GE = record
address : AddrType; (* Address of the node *)
sysop : str36; (* Name of the sysop or point *)
pktpwd : str9; (* Packet (session) password *)
mgrpwd : str17; (* AreaMgr password *)
oldgroups : dword; (* AreaMgr groups (bits 0-25) *)
options : word; (* See --- Node option bits *)
comprtype : byte; (* Compression type (0-9, 10 = PKT) *)
mailstatus : word; (* Mail archive status. See above *)
route_to : AddrType; (* Address to route mail files to *)
oldreadgroups : dword; (* Read/write groups (bits 0-25) *)
mgrstatus : word; (* AreaMgr message status *)
compress_ext : byte; (* 0 = 0-9, 1 = 0-F, 2 = 0-Z *)
maxdays : word; (* Maximum age of mail archive, 0 = Unlimited *)
groups : GROUPS; (* Read/write groups (bits 0-255) *)
readgroups : GROUPS; (* Read groups (bits 0-255) *)
areafix : str9; (* AreaFix program *)
outmgrpwd : str17; (* AreaFix password (outbound) *)
uplinkoptions : byte; (* See --- Uplink option bits *)
unknownareas : byte; (* See --- Unknown areas *)
default_group : byte; (* Default group for added areas *)
end;
(* --- NODEFILE.GEX index entry *)
NODEFILE_GEX = record
address : AddrType; (* Address of the node *)
offset : longint; (* File offset of record in NODEFILE.GE *)
end;
(***************************************************************************)
(* --- Routed node status *)
const
ZONE_ALL = $01;
NET_ALL = $02;
NODE_ALL = $04;
(* --- Routed node entry *)
type
ROUTE = record
node : AddrType; (* Routed node address *)
status : byte; (* See --- Routed node status *)
via : byte; (* Via entry for this routed node (0-59) *)
end;
(* --- PACKFILE.GE structure *)
PACKFILE_GE = record
via : array[0..MAXVIAS-1] of AddrType;
route : array[0..MAXROUTES-1] of ROUTE;
end;
(***************************************************************************)
(* --- ECHODUPE.GE structure *)
ECHODUPE_GE = record
pointer : word; (* Next offset *)
entries : word; (* Number of entries in the database *)
(* crc32_high : array[0..entries-1]; CRC-32's on headers, high portions *)
(* crc32_low : array[0..entries-1]; CRC-32's on headers, low portions *)
end;
(***************************************************************************)
(* --- FTSCPROD.GE record *)
FTSCPROD_GE = record
cap : byte; (* Capability: 0 = Type 2.0, 1 = Type 2.1, 2 = Type 2+ *)
name : str30; (* Name of product *)
end;
(***************************************************************************)
(* --- JAM_CONV.GE record *)
JAMCONV_GE = record
areanumber : word;
name : str51;
jambase : str51;
end;
(***************************************************************************)
(* --- MBUTIL.RNX record *)
MBUTIL_RNX = record
old_msgnum : word;
new_msgnum : word;
end;
(* end of file "gestruct.inc" *)
Implementation
end.