Get the remote address of a stream socket.
Defined in <SDL3_net/SDL_net.h>
SDLNet_Address * SDLNet_GetStreamSocketAddress(SDLNet_StreamSocket *sock);
SDLNet_StreamSocket * | sock | the stream socket to query. |
(SDLNet_Address *) Returns the socket's remote address, or NULL on error; call SDL_GetError() for details.
This reports the address of the remote side of a stream socket, which might still be pending connnection.
This adds a reference to the address; the caller must call SDLNet_UnrefAddress() when done with it.
It is safe to call this function from any thread.
This function is available since SDL_Net 3.0.0.