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 build UDP responder
How to create non-blocking Winsock server
How to ping a remote site using ICMP API calls
Winsock: connecting to a news server (NNTP, port 119)
Winsock: reading email messages (POP3, port 110)
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
Winsock: retrieving information from a host database for a given host name
Winsock: retrieving the standard host name and IP address for the local machine
Winsock: retrieving Web pages using sockets (HTTP, port 80)
Winsock: sending email messages (SMTP, port 25)
gethostbyname
..msdn    Add comment     W32 Constants      Translate this page
The gethostbyname function retrieves host information corresponding to a host name from a host database.
Code examples:
Winsock: sending email messages (SMTP, port 25)
Winsock: connecting to a news server (NNTP, port 119)
How to ping a remote site using ICMP API calls
Winsock: reading email messages (POP3, port 110)
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)
How to create non-blocking Winsock server
Winsock: retrieving Web pages using sockets (HTTP, port 80)
How to build UDP responder
Winsock: retrieving the standard host name and IP address for the local machine
Winsock: retrieving information from a host database for a given host name
Declaration:
struct hostent FAR *gethostbyname(
  const char FAR *name  
);
FoxPro declaration:
DECLARE INTEGER gethostbyname IN ws2_32;
    STRING hostname
Parameters:
name
[in] Pointer to the null-terminated name of the host to resolve.
Return value:
If no error occurs, gethostbyname returns a pointer to the hostent structure described above. Otherwise, it returns a NULL pointer and a specific error number can be retrieved by calling WSAGetLastError.
My comment:
The gethostbyname function has been deprecated by the introduction of the getaddrinfo function.
Word Index links for the gethostbyname :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-12-14 21:41:27
Modified: 2004-06-20 22:18:15
Visited in last 7 days: 63
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.221.93.187)
14 sec.
Function group: 'File System'
29 sec.Function: 'LPtoDP'
43 sec.Function: 'GetBkMode'
57 sec.Function: 'DwmExtendFrameIntoClientArea'
1.2 min.Function: 'GetEnhMetaFile'
1.45 min.Function: 'GetUdpTable'
1.68 min.Function: 'WNetGetUniversalName'
1.93 min.Function: 'FindClose'
2.18 min.
Function group: 'Authentication'
2.42 min.Function: 'IsIconic'
Google
Advertise here!