SDL_Function
Name
SDLNet_TCP_Close -- Shutsdown, disconnects, and closes the TCPsocket sock.
Synopsis
void SDLNet_TCP_Close(TCPsocket sock);
sock A valid TCPsocket. This can be a server or client type socket.
Description
This shutsdown, disconnects, and closes the TCPsocket sock. After this, you can be assured that this socket is not in use anymore. You can reuse the sock variable after this to open a new connection with SDLNet_TCP_Open. Do not try to use any other functions on a closed socket, as it is now invalid.
Return Value
Returns: nothing, this always succeeds for all we need to know.
Example
To close the connection on a socket called sock:
SDLNet_TCP_Close(sock);
