Using Win32 functions in Visual FoxPro Image Gallery
IP Helper
..msdn
GetAdaptersAddresses
GetAdaptersInfo
GetBestInterface
GetBestRoute
GetIfEntry
GetInterfaceInfo
GetIpAddrTable
GetIpNetTable
GetIpStatistics
GetNetworkParams
GetNumberOfInterfaces
GetRTTAndHopCount
GetTcp6Table
GetTcpStatistics
GetTcpTable
GetUdpTable
IcmpCloseHandle
IcmpCreateFile
IcmpSendEcho
if_indextoname
if_nametoindex
IpReleaseAddress
IpRenewAddress
SendARP
Code examples:
How to ping a remote site using IP Helper API calls
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:
How to ping a remote site using IP Helper API calls
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-02-03 22:24:26
Modified: 2003-02-03 22:26:41
Visited in last 7 days: 19
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.203.76)
8 sec.Function: 'CeRapiFreeBuffer'
15 sec.Function: 'WinHttpCloseHandle'
28 sec.Function: 'DeleteFileTransacted'
Google
Advertise here!