The first parameter to gethostbyaddr should not be a in_addr but simply your ip address in char format (= inet_addr("1.2.3.4")).
Also, see the example code in the MSDN.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 11 of 11
Thread: gethostbyaddrThreaded View
|
Click Here to Expand Forum to Full Width |