NET_GetStreamSocketAddress - Man Page
Get the remote address of a stream socket.
Synopsis
#include <SDL3_net/SDL_net.h> NET_Address * NET_GetStreamSocketAddress(NET_StreamSocket *sock);
Description
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 NET_UnrefAddress() when done with it.
Function Parameters
- sock
the stream socket to query.
Return Value
Returns the socket's remote address, or NULL on error; call SDL_GetError() for details.
Thread Safety
It is safe to call this function from any thread.
Availability
This function is available since SDL_net 3.0.0.
Info
SDL_net 3.2.0 SDL_net3 FUNCTIONS