 |
 |
 |
|
|  |  |
 |
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: |  | |
|
 |  | | 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: |  | |  |  | | • |  | | Created: | 2001-12-14 21:41:27 | | Modified: | 2004-06-20 22:18:15 | Visited in last 7 days: 43 |
|
 |
 |
 |
 |
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. |
 |
 |
|
 |
 |
|
|