Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

sockaddr_in and client's IP

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 Cloxs   Members   

122
Like
Likes
Like

Posted 08 May 2000 - 08:46 AM

How do I get the clients IP without using Inet_ntop();? I''m working with OS X, and it chokes on Inet_ntop (compiles, but doesn''t link ). Thanks in advance. "When people tell you they want to hear the truth, you know that their lying."

#2 SiCrane   Moderators   

11774
Like
Likes
Like

Posted 08 May 2000 - 09:03 AM

you can use inet_ntoa to convert a in_addr struct into a dotted decimal string. inet_ntop can be flaky if you aren''t running on a system with IPV6 support.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.