Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R8
NET_Resolve
|
NET_Resolve ( hostName ; ipOrHost ) -> Funktionsergebnis | ||||||||
Parameter | Typ | Beschreibung | ||||||
hostName | String |
![]() |
Host name or IP address | |||||
ipOrHost | String |
![]() |
Returns the opposite value | |||||
Funktionsergebnis | Ganzzahl |
![]() |
Error Code | |||||
Given a host name in the first parameter, the NET_Resolve command will return the IP address into the second parameter. If the first parameter is passed an IP address, the second parameter will yield the registered host name for that machine.
hostName is a string which contains either an IP address or a host name.
ipOrHost - If the first parameter contained a Host Name then this parameter will receive its IP address. If the IP address was specified in the first parameter then this value will receive its Host Name.
The following example first passes a host name "www.netcom.com" to the NET_Resolve command in order to obtain its IP address. The example then makes another call to the command, passing it the IP address in order to obtain its registered host name.
C_BOOLEAN($ERR)
C_TEXT($Resolved) //Can be any sized string or text value
$ERR:=ERRCHECK("NET_Resolve";NET_Resolve("www.netcom.com";$Resolved))
//$Resolved was returned the value '192.100.81.100'
$ERR:=ERRCHECK("NET_Resolve";NET_Resolve($Resolved;$Resolved))
//$Resolved was returned the value 'www.netcom.com'
Produkt: 4D
Thema: IC Internet
Nummer:
88921
Erstellt: 4D Internet Commands 6.5
4D Internet Commands ( 4D v20 R8)