mormot2 ping
mormot2 ping
uses
mormot.net.sock
function Ping(const AIp, APort: string): Boolean; var res: TNetResult; timeout: Integer; addr: TNetAddr; sock: TNetSocket; begin timeout := 10000; res := NewSocket(AIp, APort, nlTcp, { doBind= } false, 1000, timeout, timeout, { retry= } 1, sock, @addr); Result := res = nrOK; end;
本文来自博客园,作者:{咏南中间件},转载请注明原文链接:https://www.cnblogs.com/hnxxcxg/p/18843197

浙公网安备 33010602011771号