Close a TCP network socket.
Defined in <SDL_net.h>
void SDLNet_TCP_Close(TCPsocket sock);
TCPsocket | sock | socket to close. |
All TCP sockets (server and non-server) are deinitialized through this function. Call this once you are done with a socket, and assume the handle is invalid once you have.
Closing a socket will disconnect any communication and free its resources.
This function is available since SDL_net 2.0.0.