home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / w / wnode230.zip / WNODESTR.230 < prev   
Text File  |  1993-03-14  |  4KB  |  93 lines

  1. WNODE 2.3 - Copyright 1990-92 by Silvan Calarco -
  2.  
  3.     ────────────────────────────────────────
  4.     Structures of files managed by WNODE 2.3
  5.     ────────────────────────────────────────
  6.  
  7. The following structures are created in Turbo Pascal; look at following
  8. table for type compatibility.
  9.  
  10. Turbo Pascal  C language    Length
  11. ────────────  ────────────  ───────
  12. Byte          Char          1 byte
  13. Char          Char          1 byte
  14. Integer       Int           2 bytes
  15. Word          Unsigned Int  2 bytes
  16. Longint       Long          4 bytes
  17. ────────────  ────────────  ───────
  18.  
  19. String[] format uses a byte more than the number specified in brackets, as
  20. the first one (String[0]) contains string length.
  21.  
  22. ───────────────────────────────────────────────────────────────────────────
  23.  
  24. { ***** W-Nodelist files structures **************************************** }
  25.  
  26. Files created by WNode are 4, and are used for indexing text nodelist in
  27. order to speed up seeks;
  28.  
  29. *AltNode.WNL contains a queue of nodelist files used other than NodeList.*,
  30.              so private nodelists, pointlists or alternate net nodelists.
  31.  
  32. *NodeLoc.WNL contains position of concerned field, and nodelist file in
  33.              which are contained the informations about node every record
  34.              refers to.
  35.  
  36. *SysList.WNL contains names of all Sysops alphabetically sorted and location
  37.              of relative node in NodeLoc.WNL.
  38.  
  39. *NodeIdx.WNL contains indexes to obtain a quick search inside NodeLoc.WNL and
  40.              SysList.WNL. All starting positions of zones and nets, and of
  41.              sorted sysop are put in it.
  42.  
  43.  
  44.    NodeLocRec=Record             { Record of NodeLoc.WNL }
  45.                  NodeType:Byte;  { 1:Zone coordinator
  46.                                    2:Region coordinator
  47.                                    4:Host
  48.                                    8:Hub
  49.                                   16:Pvt
  50.                                   32:Hold
  51.                                   64:Down
  52.                                  128:Boss [from pointlist] }
  53.                  Zone,Net,Node,Point:Integer;
  54.                  FileNum:Byte;   { 1: Nodelist.* [newest file];
  55.                                    2: AltNode.WNL [created by WNode] }
  56.                  FilePos:Longint; { Contains absolute node position in one
  57.                                     of two files pointed by FileNum }
  58.               end;
  59.  
  60.  
  61.    SysopRec=Record               { Record of SysList.WNL }
  62.                Name:String[20];
  63.                BBSRecord:Longint;{ Position of node record in NodeLoc.WNL }
  64.             end;
  65.  
  66.  
  67.    NodeIdx=Record                { Record of NodeIdx.WNL }
  68.               NodeType:Byte;     { For mapping, see NodeLocRec.NodeType.
  69.                                    Nodes reported in this field are only of
  70.                                    the following types:
  71.                                    Zone coordinator
  72.                                    Region coordinator
  73.                                    Host
  74.                                    Boss }
  75.               Number:Integer;    { The significative part of address:
  76.                                    Zone coordinator: zone number
  77.                                    Region coordinator, Host: net number
  78.                                    Boss: node number }
  79.               BBSRecord:Longint; { Position of node record in NodeLoc.WNL }
  80.               Match:Array[1..4] of Char;
  81.                                  { The first 4 character of some of the
  82.                                    sorted sysop names. One out of about 30
  83.                                    names is taken. }
  84.               SysopRecord:Longint;
  85.                                  { Position of sysop record in SysList.WNL }
  86.            end;
  87.  
  88. ───────────────────────────────────────────────────────────────────────────
  89. Note: The author reserves for himself right to change this document without
  90. advice.
  91. ───────────────────────────────────────────────────────────────────────────
  92. End of file.
  93.