SDL Wiki
(This function is part of SDL_net, a separate library from SDL.)

SDLNet_FreePacket

Dispose of a UDP packet.

Syntax

void SDLNet_FreePacket(UDPpacket *packet);

Function Parameters

packet the packet to free.

Remarks

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.

Version

This function is available since SDL_net 2.0.0.


CategoryAPI


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.