Next: , Previous: Sockets.SocketAddress class-creating sockets, Up: Sockets.SocketAddress


6.20.6 Sockets.SocketAddress class: host name lookup

allByName: aString
Answer all the IP addresses that refer to the the given host. If a digit address is passed in aString, the result is an array containing the single passed address. If the host could not be resolved to an IP address, answer nil.


byName: aString
Answer a single IP address that refer to the the given host. If a digit address is passed in aString, the result is the same as using #fromString:. If the host could not be resolved to an IP address, answer nil.