Einzelnen Beitrag anzeigen

Hawkeye219

Registriert seit: 18. Feb 2006
Ort: Stolberg
2.227 Beiträge
 
Delphi 2010 Professional
 
#3

Re: Unit WebUtils

  Alt 19. Aug 2006, 00:38
Hallo Brainstalker,

hier eine Alternative zu deiner Funktion CheckIP:

Delphi-Quellcode:
// uses WinSock;

function IsValidIP (const aIP: string): Boolean;
begin
  Result := ((aIP <> '') and (inet_addr(PChar(aIP)) <> INADDR_NONE));
end;
Gruß Hawkeye
  Mit Zitat antworten Zitat