SyntaxFix
Write A Post
Hire A Developer
Questions
Just cast the entire sockaddr structure to a sockaddr_in. Then you can use:
sockaddr
char *ip = inet_ntoa(their_addr.sin_addr)
To retrieve the standard ip representation.