Einzelnen Beitrag anzeigen

Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.755 Beiträge
 
Delphi 10.4 Sydney
 
#3

Re: per Ping schauen, ob Rechner lebt

  Alt 30. Jul 2008, 17:30
Guten Abend,

kannst Du nicht den ReplyStatus abfragen?

Zitat von Hilfe zu idIcmpClient:
property ReplyStatus: TReplyStatus;

Description

ReplyStatus is a TReplyStatus property used to store a response to an echo request.

ReplyStatus is updated when a receiving a response to an echo request in Ping. When the response to an echo request contains a non-zero length, ReplyStatus is updated with the contents of the echo response datagram.

When the response to an echo request contains 0 bytes, ReplyStatus is updated with values to indicate the error condition, including:

BytesReceived - 0
FromIpAddress - '0.0.0.0'
MsgType - 0
SequenceId - Internal sequence number from TIdIcmpClient
TimeToLive - 0
ReplyStatusType - rsTimeOut
Grüße
Klaus
Klaus
  Mit Zitat antworten Zitat