Einzelnen Beitrag anzeigen

mjustin

Registriert seit: 14. Apr 2008
3.005 Beiträge
 
Delphi 2009 Professional
 
#10

AW: IsHostAlive mit XE2 - Unklare Fehler / Warnungen

  Alt 28. Feb 2015, 17:21
Übrigens: Wenn ich IsHostalive mit einem leeren string aufrufe, gibt es immer True mit 0 ms zurück!

IsHostalive('', @RTT)

WARUM?
Weil die intern verwendete Funktion gethostbyname dann localhost verwendet.

Zitat:
If the name parameter points to an empty string or name is NULL, the returned string is the same as the string returned by a successful gethostname function call (the standard host name for the local computer).
Michael Justin
  Mit Zitat antworten Zitat