Dispose of a UDP packet.
Defined in <SDL_net.h>
void SDLNet_FreePacket(UDPpacket *packet);
UDPpacket * | packet | the packet to free. |
This frees both the packet's payload and the packet itself. Once this call completes, the packet's pointer is invalid and should not be used anymore.
This function is available since SDL_net 2.0.0.