Type HOSTENT
h_name As Long
h_aliases As Long
h_addrtype As Integer
h_length As Integer
h_addr_list As Long
End Type
The HOSTENT structure stores information about a host computer on a network. Most of the information in the structure is stored as a set of pointers to the actual data.
To access the data pointed to by the structure, it is necessary to use functions such as CopyMemory, lstrcpy, and lstrlen to copy the data into the appropriate variables. See the example for gethostbyname for a demonstration of how this is done.
Back to the Structure list.
Back to the Reference section.
Last Modified: December 17, 2000
This page is copyright © 2000 Paul Kuliniewicz.
Copyright Information Revised October 29, 2000
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/h/hostent.html