Hello,
I have a hostent h_addr and I want to convert that to a string IP address. How can I do that?
I tried this:
but that doesnt work..Code:string ipaddress; struct hostent *h; h = gethostbyname(hostname.c_str()); ipaddress=h->h_addr;
Thanks!
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 2 of 2
|
Click Here to Expand Forum to Full Width |