XNS.mesa
Copyright Ó 1986, 1987 by Xerox Corporation. All rights reserved.
Demers, January 20, 1986 3:50:49 pm PST
Hal Murray, May 27, 1986 8:38:42 pm PDT
Doug Wyatt, January 15, 1987 11:17:30 am PST
XNS Addressing per XSIS 028112, December 1981.
See XNSWKS.mesa for well-known socket assignments.
DIRECTORY
Basics USING [FWORD, HWORD];
XNS: CEDAR DEFINITIONS
~ BEGIN
Address Types
Address: TYPE ~ MACHINE DEPENDENT RECORD [net: Net, host: Host, socket: Socket];
Net: TYPE ~ Basics.FWORD; -- 32 bits
Host: TYPE ~ MACHINE DEPENDENT RECORD [a, b, c, d, e, f: BYTE]; -- 48 bits
Socket: TYPE ~ Basics.HWORD; -- 16 bits
Unknown / Default and Broadcast Values
unknownNet: Net ~ [[0, 0], [0, 0]];
broadcastNet: Net ~ [[0ffH, 0ffH], [0ffH, 0ffH]]; -- Not supported
unknownHost: Host ~ [0, 0, 0, 0, 0, 0];
broadcastHost: Host ~ [0ffH, 0ffH, 0ffH, 0ffH, 0ffH, 0ffH];
unknownSocket: Socket ~ [0, 0];
unknownAddress: Address ~ [unknownNet, unknownHost, unknownSocket];
Host Number Manipulations
GetThisHost: PROC RETURNS [Host];
Returns XNS Host number for this machine.
IsMulticastHost: PROC [host: Host] RETURNS [BOOL];
Return TRUE iff host is a multicast (or broadcast) host number.
END.