Difference between revisions of "TPing"
Jump to navigation
Jump to search
Markus.humm (talk | contribs) (Events added) |
Markus.humm (talk | contribs) (→Properties: updated list to match current component properties) |
||
Line 17: | Line 17: | ||
| width="140" valign="top" | [[TPing.Address | Address]] |||| The host's IP or DNS address which will be pinged. | | width="140" valign="top" | [[TPing.Address | Address]] |||| The host's IP or DNS address which will be pinged. | ||
|- | |- | ||
− | | valign="top" | [[TPing.DNSResult | DNSResult]] |||| | + | | valign="top" | [[TPing.DNSResult | DNSResult]] |||| Result of the DNS query performed when address is a DNS address. |
|- | |- | ||
− | | valign="top" | [[TPing.ErrorCode | ErrorCode]] |||| | + | | valign="top" | [[TPing.ErrorCode | ErrorCode]] |||| Numerical error code of the ping operation. |
|- | |- | ||
− | | valign="top" | [[TPing.ErrorString | ErrorString]] |||| | + | | valign="top" | [[TPing.ErrorString | ErrorString]] |||| Textual error message. |
|- | |- | ||
| valign="top" | [[TPing.Flags | Flags]] |||| Integer? | | valign="top" | [[TPing.Flags | Flags]] |||| Integer? | ||
|- | |- | ||
− | | valign="top" | [[TPing. | + | | valign="top" | [[TPing.Name | Name]] |||| Name of the instance. |
|- | |- | ||
− | | valign="top" | [[TPing. | + | | valign="top" | [[TPing.PingMsg | PingMsg]] |||| Text to be sent as content of the ICMP packet sent via [[Ping.Ping|Ping]]. |
|- | |- | ||
− | | valign="top" | [[TPing. | + | | valign="top" | [[TPing.ReplyIP | ReplyIP]] |||| ?. |
|- | |- | ||
− | | valign="top" | [[TPing. | + | | valign="top" | [[TPing.ReplyRTT | ReplyRTT]] |||| ?. |
+ | |- | ||
+ | | valign="top" | [[TPing.ReplySize | ReplySize]] |||| ?. | ||
|- | |- | ||
− | | valign="top" | [[TPing. | + | | valign="top" | [[TPing.ReplyStatus | ReplyStatus]] |||| ?. |
|- | |- | ||
| valign="top" | [[TPing.Size | Size]] |||| Size of the ICMP packet sent in bytes. | | valign="top" | [[TPing.Size | Size]] |||| Size of the ICMP packet sent in bytes. | ||
+ | |- | ||
+ | | valign="top" | [[TPing.SocketFamily | SocketFamily]] |||| Kind of the socket to be used: IPv4, IPv6.... | ||
+ | |- | ||
+ | | valign="top" | [[TPing.SrcAddress | ScrAddress]] |||| Source address of the host starting the ping? | ||
+ | |- | ||
+ | | valign="top" | [[TPing.SrcAddress6 | ScrAddress6]] |||| The same as SrcAddress but for IPv6 | ||
|- | |- | ||
| valign="top" | [[TPing.Tag | Tag]] |||| Integer value which can be used for your own purposes, e.g. when iterating through all controls of a form. | | valign="top" | [[TPing.Tag | Tag]] |||| Integer value which can be used for your own purposes, e.g. when iterating through all controls of a form. |
Revision as of 16:05, 27 January 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 | Result of the DNS query performed when address is a DNS address. | |
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. | |
Ping | Sends the ICMP packet. |
Events
OnDisplay | ?. | |
OnDNSLookupDone | Called when the DNS Lookuop ?. | |
OnEchoRequest | Called when the request is being sent. | |
OnEchoReply | Called when the answer to the ping arrive. |
How to