|
-
January 8th, 2003, 06:39 AM
#1
How to get an IP-String from SOCKADDR_IN
Hi,
again a relative simple question... but I found no answer:
I wrote a simple server, which accepts connections as usual. I passed a SOCKADDR_IN-struct to the accept-call to obtain Client-IP, port etc.
But how to "decrypt" the IP from SOCKADDR_IN.sin_addr ?
I know that there is a function for "encrypting" an IP-string to an IP-Address. But I have an IP-Address and want a string representation.
I'm sure somebody can tell me ;o)
Thanx in advance
Juergen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|