Difference between revisions of "TPing"
Jump to navigation
Jump to search
Markus.humm (talk | contribs) (→Methods: updated method list) |
Markus.humm (talk | contribs) (→Methods: PingAsync was at the wrong place) |
||
| Line 66: | Line 66: | ||
|- | |- | ||
| width="140" valign="top" | [[Ping.Ping | Ping]] |||| Synchronously sends the ICMP packet. | | width="140" valign="top" | [[Ping.Ping | Ping]] |||| Synchronously sends the ICMP packet. | ||
| + | |- | ||
| + | | width="140" valign="top" | [[Ping.PingAsync | PingAsync]] |||| Asynchronously sends the ICMP packet. | ||
|- | |- | ||
| width="140" valign="top" | [[Ping.ProcessMessage | ProcessMessage]] |||| ??? | | width="140" valign="top" | [[Ping.ProcessMessage | ProcessMessage]] |||| ??? | ||
|- | |- | ||
| width="140" valign="top" | [[Ping.ProcessMessages | ProcessMessages]] |||| ??? | | width="140" valign="top" | [[Ping.ProcessMessages | ProcessMessages]] |||| ??? | ||
| − | |||
| − | |||
|- | |- | ||
| width="140" valign="top" | [[Ping.PostQuitMessage| PostQuitMessage]] |||| ??? | | width="140" valign="top" | [[Ping.PostQuitMessage| PostQuitMessage]] |||| ??? | ||
Revision as of 10:33, 2 February 2019
Main page -> ICS component reference -> TPing
Contents
Overview
| unit | Ping.pas | |
| inheritance |
The TPing component implements at least parts of the ICMP protocoll.
It can be used to check whether some other host is reachable or not.
Properties
| Address | The host's IP or DNS address which will be pinged. | |
| DNSResult | The IP address of the remote host if it was specified as DNS address in address property | |
| ErrorCode | Numerical error code of the ping operation. | |
| ErrorString | Textual error message. | |
| Flags | Integer? | |
| Name | Name of the instance. | |
| PingMsg | Text to be sent as content of the ICMP packet sent via Ping. | |
| ReplyIP | ?. | |
| ReplyRTT | ?. | |
| ReplySize | ?. | |
| ReplyStatus | ?. | |
| Size | Size of the ICMP packet sent in bytes. | |
| SocketFamily | Kind of the socket to be used: IPv4, IPv6.... | |
| ScrAddress | Source address of the host starting the ping? | |
| ScrAddress6 | The same as SrcAddress but for IPv6 | |
| Tag | Integer value which can be used for your own purposes, e.g. when iterating through all controls of a form. | |
| Timeout | Time in miliseconds which may elapse between sending and receiving the ICMP packet. | |
| TTL | Sets the Time To Live value within the packet being sent. |
Methods
| CancelDNSLookup | Cancel a running DNS lookup. | |
| Create | Create the instance. | |
| DNSLoopup | Look up the IP to a given DNS address. | |
| MessageLoop | ??? | |
| MessagePump | ??? | |
| Ping | Synchronously sends the ICMP packet. | |
| PingAsync | Asynchronously sends the ICMP packet. | |
| ProcessMessage | ??? | |
| ProcessMessages | ??? | |
| PostQuitMessage | ??? | |
| ThreadAttach | Attach to the current thread. | |
| ThreadDetach | Detach from the current thread. |
Events
| BgException | ?. | |
| OnDisplay | ?. | |
| OnDNSLookupDone | Called when the DNSLookup has been finished. | |
| OnEchoReply | Called when the answer to the ping arrive. | |
| OnEchoRequest | Called when the request is being sent. |
How to