Oberon || Library || Module Index || Search Engine || Definition || Module
CONST errors = 6; CONST colonExpected = 0; CONST portExpected = 1; CONST invalidPortNumber = 2; CONST hostnameExpected = 3; CONST unableToFindPort = 4; CONST tooManyIndirections = 5; TYPE ErrorCode = SHORTINT; (* colonExpected.. *) TYPE ErrorEvent = POINTER TO ErrorEventRec; TYPE ErrorEventRec = RECORD (Events.EventRec) errorcode: ErrorCode; source: ARRAY 128 OF CHAR; END; VAR error: Events.EventType; VAR errormsg: ARRAY errors OF Events.Message;
PROCEDURE Import(ipaddr: IPv4Addresses.SocketAddress; VAR root: Names.Node; errors: RelatedEvents.Object) : BOOLEAN; PROCEDURE ImportFrom(source: ARRAY OF CHAR; VAR root: Names.Node; errors: RelatedEvents.Object) : BOOLEAN;
PROCEDURE Convert(source: ARRAY OF CHAR; VAR address: Networks.Address; errors: RelatedEvents.Object) : BOOLEAN;
Import allows the direct specification of an IPv4 address whereas ImportFrom accepts a specification which can be either
Convert converts a specification as described above for ImportFrom to be converted into a network address that can be passed on to NamesBootService.
In addition, error events can be expected by the underlying modules. This includes mainly events from DNSResolvers and of InetTCP. All error events are related to the errors parameters.
Oberon || Library || Module Index || Search Engine || Definition || Module