Accept an incoming connection on the given server socket.
TCPsocket SDLNet_TCP_Accept(TCPsocket server);
|the server socket to accept a connection on.
Returns the newly created socket, or NULL if there was an error.
server must be a socket returned by SDLNet_TCP_Open with an address of INADDR_NONE or INADDR_ANY (a "server socket"). Other sockets do not accept connections.
This function is available since SDL_net 2.0.0.