Archived

This topic is now archived and is closed to further replies.

HulkHogan

HOSTENT Winsock structure

Recommended Posts

Hello, I was checking through the MSDN, and I found very little info on the HOSTENT structure. What is this structure, and what does it generally do ? Thanks for any help

Share this post


Link to post
Share on other sites
Given a host on the network known either by it''s name or address you can use gethostbyname() or gethostbyaddr() to get determine the address or name(s) of the host. The HOSTENT structure is used to return the requested information. Off the top of my head, you''d never fill out one of these structures yourself, but only copy information from one that sockets layer returns.

Is this what you were looking for, or did you have more detailed questions?

Share this post


Link to post
Share on other sites