Oberon || Library || Module Index || Search Engine || Definition || Module
PROCEDURE HostByAddr(address: IPv4Addresses.SocketAddress; VAR host: ARRAY OF CHAR; errors: RelatedEvents.Object); PROCEDURE AddrByHost(host: ARRAY OF CHAR; VAR address: IPv4Addresses.SocketAddress; errors: RelatedEvents.Object) : BOOLEAN;
PROCEDURE HostByIPv6Addr(address: IPv6Addresses.SocketAddress; VAR host: ARRAY OF CHAR; errors: RelatedEvents.Object); PROCEDURE IPv6AddrByHost(host: ARRAY OF CHAR; VAR address: IPv6Addresses.SocketAddress; errors: RelatedEvents.Object) : BOOLEAN;
PROCEDURE GetHostName(VAR hostname: ARRAY OF CHAR); PROCEDURE GetDomainName(VAR domain: ARRAY OF CHAR);
HostByAddr stores the domain style address of address into host. If the name server is unable to reverse the address, the IPv4 address is returned in the dotted-decimal representation.
AddrByHost tries to convert the domain style address host to an IPv4 address. If successful, the address is stored into address and AddrByHost returns TRUE.
HostByIPv6Addr and IPv6AddrByHost operate like HostByAddr and AddrByHost but convert from or to IPv6 addresses.
GetHostName returns the host name of the calling process. The host name is given without the domain. GetDomainName returns the domain name of the calling process. The concatenation of the host name and the domain name (separated by ".") yields the full qualifying name of the current host machine.
Oberon || Library || Module Index || Search Engine || Definition || Module