 |
gethostbyaddr ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The gethostbyaddr function retrieves the host information corresponding to a network address. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-12-18 06:57:32 | | Modified: | 2004-06-20 22:17:45 | Visited in last 7 days: 24 |