Archived

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

HOSTENT Winsock structure

This topic is 5515 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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