Message No: 2 of 14 Date Sent: Tuesday, August 03, 1999 16:07 To: "Ing. Pedro E. Colla" <[email protected]>
From: "(SV2AGW)George Rossopoulos" <[email protected]>
Subject: GATENET
Status: Urgent New
The structure/record with the nodes info is as follow
//nodes table entry structure
struct NODEIND
{
int StructSize;//to
be used in case i add new components for l4
char Call[15];
char
Alias[7];
char Parent[10];
unsigned char Qual;
int Port;
int
ObsCounter;
bool Direct;
char HeardFrm[10];
};
How to use
it
***************
The structSize field must has the number of bytes of
the structure like
struct NODEIND
Node;
Node.StructSize=sizeof(Node);
That way i can add elements to the
structure and still keeping
compatability. I will add for instance a
pointer to the L4 object for this
node.
Element meaning
*********************
Call=Node call
Alias= Node
alias
Parent= the node callsign which heard this node directly
Qual=The
quality (0-255)
Port=The port from which can we access
it.
ObsCounter=How much time has passed since we last heard it.(The counter
is
updated every minute)
Direct=If we heard it directly.
HeardFrm=The
node which broadcast this node
The Parent and HeardFrm may be the same. Eg We heard from node
SV2Jl-3
broadcast the node SV2BBB that was broadcasted from node J44UAA. So
Node
SV2BBB has Parent the J44UAA(which can hear it directly) and HeardFrm
is
SV2JL-3.
The function GetNode is declared as follow
BOOLEAN GetNode(int
PositionInTable,struct NODEIND *Node);
You call this function increasing
the PositionInTable from 0 to HUGE until
the GetNode function returns a
false.
More when ready(Tomorrow)
73
(SV2AGW)George Rossopoulos
http://www.forthnet.gr/sv2agw/
[email protected]
[email protected]
