[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.3.2 SDLNet_TCP_Close

void SDLNet_TCP_Close(TCPsocket sock)

sock
A valid TCPsocket. This can be a server or client type socket.

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.

Returns: nothing, this always succeeds for all we need to know.

 
// close the connection on sock
//TCPsocket sock;

SDLNet_TCP_Close(sock);

See Also:
3.3.1 SDLNet_TCP_Open, 4.2 TCPsocket



This document was generated on November, 3 2009 using texi2html