Original Post
Hey guys,
I''ve got a Windows Async socket setup going, and I was wondering how I could output the IP address and or the Host Name from the socket information.
It seems that sa_data[2][3][4] and [5] in sockaddr structure hold the IP address in char form (gah). Any easy way to get a char* or a straight int version?
And is there a function for getting the host name that goes with the IP?
Hope someone can help
- Newb Programmer: Geek++