In SDL_net there’s an SDLNet_TCP_GetPeerAddress() which can return info
about the peer connected on a socket, but there’s no equivalent function
to get local information about a socket (which port it’s connected on,
etc) even though there’s a internal structure called localAddress inside
a TCP socket.
Is there a reason for no function like this? Can it be added? I emailed
Sam about this about a week ago but never got a reply so I thought I’d
try the mailing list.