Jump to content

  • Log In with Google      Sign In   
  • Create Account

sockaddr_in and client's IP


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   -  Reputation: 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."

Sponsor:

#2 SiCrane   Moderators   -  Reputation: 9594

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.



PARTNERS