home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
hamradio
/
wnode230.zip
/
WNODESTR.230
< prev
Wrap
Text File
|
1993-03-14
|
4KB
|
93 lines
WNODE 2.3 - Copyright 1990-92 by Silvan Calarco -
────────────────────────────────────────
Structures of files managed by WNODE 2.3
────────────────────────────────────────
The following structures are created in Turbo Pascal; look at following
table for type compatibility.
Turbo Pascal C language Length
──────────── ──────────── ───────
Byte Char 1 byte
Char Char 1 byte
Integer Int 2 bytes
Word Unsigned Int 2 bytes
Longint Long 4 bytes
──────────── ──────────── ───────
String[] format uses a byte more than the number specified in brackets, as
the first one (String[0]) contains string length.
───────────────────────────────────────────────────────────────────────────
{ ***** W-Nodelist files structures **************************************** }
Files created by WNode are 4, and are used for indexing text nodelist in
order to speed up seeks;
*AltNode.WNL contains a queue of nodelist files used other than NodeList.*,
so private nodelists, pointlists or alternate net nodelists.
*NodeLoc.WNL contains position of concerned field, and nodelist file in
which are contained the informations about node every record
refers to.
*SysList.WNL contains names of all Sysops alphabetically sorted and location
of relative node in NodeLoc.WNL.
*NodeIdx.WNL contains indexes to obtain a quick search inside NodeLoc.WNL and
SysList.WNL. All starting positions of zones and nets, and of
sorted sysop are put in it.
NodeLocRec=Record { Record of NodeLoc.WNL }
NodeType:Byte; { 1:Zone coordinator
2:Region coordinator
4:Host
8:Hub
16:Pvt
32:Hold
64:Down
128:Boss [from pointlist] }
Zone,Net,Node,Point:Integer;
FileNum:Byte; { 1: Nodelist.* [newest file];
2: AltNode.WNL [created by WNode] }
FilePos:Longint; { Contains absolute node position in one
of two files pointed by FileNum }
end;
SysopRec=Record { Record of SysList.WNL }
Name:String[20];
BBSRecord:Longint;{ Position of node record in NodeLoc.WNL }
end;
NodeIdx=Record { Record of NodeIdx.WNL }
NodeType:Byte; { For mapping, see NodeLocRec.NodeType.
Nodes reported in this field are only of
the following types:
Zone coordinator
Region coordinator
Host
Boss }
Number:Integer; { The significative part of address:
Zone coordinator: zone number
Region coordinator, Host: net number
Boss: node number }
BBSRecord:Longint; { Position of node record in NodeLoc.WNL }
Match:Array[1..4] of Char;
{ The first 4 character of some of the
sorted sysop names. One out of about 30
names is taken. }
SysopRecord:Longint;
{ Position of sysop record in SysList.WNL }
end;
───────────────────────────────────────────────────────────────────────────
Note: The author reserves for himself right to change this document without
advice.
───────────────────────────────────────────────────────────────────────────
End of file.