Tao.Sdl SDK Documentation

SdlNet.SDLNet_FreeSocketSet Method 

Free a socket set

[Visual Basic]
Public Shared Sub SDLNet_FreeSocketSet( _
   ByVal set As SDLNet_SocketSet _
)
[C#]
public static void SDLNet_FreeSocketSet(
   SDLNet_SocketSet set
);

Parameters

set
The socket set to free from memory

Return Value

nothing, this call always succeeds.

Remarks

Free the socket set from memory. Do not reference the set after this call, except to allocate a new one.

Binds to C-function call in SDL_net.h:

            extern DECLSPEC void SDLCALL SDLNet_FreeSocketSet(SDLNet_SocketSet set)
            

Example

            // free a socket set
            //SDLNet_SocketSet set;
            SDLNet_FreeSocketSet(set);
            set=NULL; //this helps us remember that this set is not allocated
            

See Also

SdlNet Class | Tao.Sdl Namespace | SDLNet_AllocSocketSet | SDLNet_AddSocket | SdlNet.SDLNet_SocketSet | SdlNet.UDPsocket | SdlNet.TCPsocket