ip$ = ToIP(host$[, protocol])
Starting with Hollywood 8.0, there is an optional new protocol
argument
which allows you to specify the Internet protocol that should be used for
the resulting IP address. This can be one of the following special constants:
#IPV4:
#IPV6:
#IPV6
is currently unsupported on AmigaOS and compatible systems.
#IPAUTO:
The protocol
argument defaults to the default protocol type set using
SetNetworkProtocol(). By default, this is
#IPV4
due to historical and portability reasons. See SetNetworkProtocol for details.
To resolve a host name with advanced functionality, take a look at the ResolveHostName() function. See ResolveHostName for details.