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

### 3.4.2 SDLNet_UDP_Close

`void SDLNet_UDP_Close(UDPsocket sock)`

sock
  A valid UDPsocket to shutdown, close, and free.

Shutdown, close, and free a UDPsocket.
Don't use the UDPsocket after calling this, except to open a new one.

Returns: nothing, this always succeeds.

    // unbind all addresses on the UDPsocket channel 0
    //UDPsocket udpsock;

    SDLNet_UDP_Close(udpsock);
    udpsock=NULL; //this helps us know that this UDPsocket is not valid anymore

See Also:
3.4.1 SDLNet_UDP_Open, 4.3 UDPsocket

This document was generated on November, 3 2009 using texi2html