Using Win32 functions in Visual FoxPro Image Gallery
Windows Sockets 2 (Winsock)
..msdn
accept
bind
closesocket
gethostbyaddr
gethostbyname
gethostname
getnameinfo
getprotobyname
getprotobynumber
getservbyname
getservbyport
getsockopt
htonl
htons
inet_addr
inet_ntoa
listen
ntohl
ntohs
recv
recvfrom
send
sendto
setsockopt
socket
WSACleanup
WSACloseEvent
WSAConnect
WSACreateEvent
WSAEnumProtocols
WSAEventSelect
WSAGetLastError
WSARecv
WSASend
WSAStartup
WSAWaitForMultipleEvents
ws_connect
ws_select
Code examples:
How to retrieve network parameters for the local computer (including Host name, Domain name, and DNS Server)
Retrieving the interface–to–IP address mapping table
Retrieving the IP-to-physical address mapping table
Winsock: retrieving the host information corresponding to a network address
gethostbyaddr
..msdn    Add comment     W32 Constants      Translate this page
The gethostbyaddr function retrieves the host information corresponding to a network address.
Code examples:
Retrieving the interface–to–IP address mapping table
Winsock: retrieving the host information corresponding to a network address
How to retrieve network parameters for the local computer (including Host name, Domain name, and DNS Server)
Retrieving the IP-to-physical address mapping table
Declaration:
 
struct HOSTENT FAR * gethostbyaddr(
  const char FAR *addr,
  int len,
  int type
);
 
FoxPro declaration:
 
DECLARE INTEGER gethostbyaddr IN ws2_32;
    STRING  addr,;
    INTEGER len,;
    INTEGER type
 
Parameters:
addr
[in] Pointer to an address in network byte order.

len
[in] Length of the address.

type
[in] Type of the address, such as the AF_INET address family type (defined as TCP, UDP, and other associated Internet protocols). Address family types and their corresponding values are defined in the Winsock2.h header file.
Return value:
If no error occurs, gethostbyaddr returns a pointer to the hostent structure. Otherwise, it returns a NULL pointer, and a specific error code can be retrieved by calling WSAGetLastError.
My comment:
The gethostbyaddr function has been deprecated by the introduction of the getnameinfo function.
Word Index links for the gethostbyaddr :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-12-18 06:57:32
Modified: 2004-06-20 22:17:45
Visited in last 7 days: 23
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.198.246.116)
12 sec.Function: 'GetFileAttributesEx'
Function group: 'File Management'
24 sec.Function: 'GetEnhMetaFileHeader'
Function group: 'Metafile'
35 sec.Function: 'mmioOpen'
Function group: 'Windows Multimedia'
47 sec.Example: 'Moving shortcut to a specified position on the Windows Desktop'
1 min.Updates
1.23 min.Function: 'GetFileAttributes'
Function group: 'File Management'
1.47 min.Login
1.67 min.All Functions
1.92 min.Solutions
2.4 min.Function: 'GetDiskFreeSpaceEx'
Function group: 'File System'
Google
Advertise here!