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: 23
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.234.126.92)
27.55 min.Function: 'DuplicateHandle'
27.6 min.Example: 'Printing text on the client area of the main VFP window'
14.55 hrs.Function: 'CloseWindow'
Function group: 'Window'
 Example: 'Pocket PC: custom RAPI class for operating with files and folders on mobile device'
 Article: 'ApiViewer for Visual FoxPro '
18.61 hrs.Example: 'How to generate GUID values'
 Example: 'Enumerating ODBC Data Sources available on the local computer'
1 day(s)Example: 'Testing Transparent Menu Class with top-level form (requires VFP9)'
 Example: 'Comparing file times'
2 day(s)Function: 'GetCurrentHwProfile'
Google
Advertise here!