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

SDLNet_FreeLocalAddresses

Free the results from SDLNet_GetLocalAddresses.

Header File

Defined in <SDL3_net/SDL_net.h>

Syntax

void SDLNet_FreeLocalAddresses(SDLNet_Address **addresses);

Function Parameters

SDLNet_Address ** addresses A pointer returned by SDLNet_GetLocalAddresses().

Remarks

This will unref all addresses in the array and free the array itself.

Since addresses are reference counted, it is safe to keep any addresses you want from this array even after calling this function, as long as you called SDLNet_RefAddress() on them first.

It is safe to pass a NULL in here, it will be ignored.

Thread Safety

It is safe to call this function from any thread.

Version

This function is available since SDL_Net 3.0.0.


CategoryAPI, CategoryAPIFunction, CategorySDLNet


[ 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.