[GOODIE][UNIX] Extended hostname lookup
John Clonts
jclonts at mastnet.net
Sat Feb 12 00:55:37 UTC 2000
Bert Freudenberg wrote:
>
> "Change Set: unixgethost-bf
> Date: 11 February 2000
> Author: Bert Freudenberg
>
> Provides class UnixHostent for direct hostname lookup via gethostbyname()
> or gethostbyaddr() using FFI. Allows getting multiple ip-addresses, for
> example."
>
> Examples:
>
> hostent _ UnixHostent getHostByName: 'www.squeak.org'.
> hostent _ UnixHostent getHostByAddr: (#(141 44 23 1) as: ByteArray).
> hostent name "official name of host"
> hostent aliases "alias list"
> hostent addrType "host address type (2 = IP, 10=IPv6)"
> hostent addrLength "length of address (4 = IP, 8=IPv6)"
> hostent addrList "list of addresses"
>
> Enjoy!
>
> -Bert-
>
> ---------------------------------------------------------------
>
> Name: unixgethost-bf.1.cs.gz
> Part 1.2 Type: APPLICATION/x-gunzip
> Encoding: BASE64
Thanks Bert! I have found this VERY instructive regard handling of
structures and pointers from the squeak side!
Cheers,
John
More information about the Squeak-dev
mailing list
|