A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



gethostbyaddr

This function retrieves the host data corresponding to a network address.

VB4-32,5,6
Declare Function gethostbyaddr Lib "wsock32.dll" (haddr As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long

VB.NET
System.Net.Dns.GetHostByAddress

Operating Systems Supported
Requires Windows Sockets 1.1 or later

Library
Wsock32

Parameter Information
- addr
[in] Pointer to an address in network byte order.

- len
[in] Address length.

- type
[in] Address type.

Return Values
A pointer to the HOSTENT structure indicates no error occurred. A NULL pointer indicates failure. To get a specific error value, call the WSAGetLastError function.

Last update: 07 April 2006