 |
GetRTTAndHopCount ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The GetRTTAndHopCount function determines the round-trip time (RTT) and hop count to the specified destination. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL GetRTTAndHopCount(
IPAddr DestIpAddress,
PULONG HopCount,
ULONG MaxHops,
PULONG RTT
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetRTTAndHopCount IN Iphlpapi;
INTEGER DestIpAddress,;
LONG @ HopCount,;
INTEGER MaxHops,;
LONG @ RTT
|
 |
 |
 |
| Parameters: |
 |
DestIpAddress
[in] IP address of the destination for which to determine the RTT and hop count.
HopCount
[out] This variable receives the hop count to the destination specified by the DestIpAddress parameter.
MaxHops
[in] Maximum number of hops to search for the destination.
RTT
[out] Round-trip time, in milliseconds, to the destination specified by DestIpAddress. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is TRUE. |
 |
 |
| My comment: |
 |
| To convert an IP address between dotted decimal notation and IPAddr format, use the inet_addr and inet_ntoa functions. |
 |
 |
| Word Index links for the GetRTTAndHopCount : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2003-02-03 22:24:26 | | Modified: | 2003-02-03 22:26:41 | Visited in last 7 days: 23 |