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

Unbind all addresses from the given channel.

## Header File

Defined in [<SDL_net.h>](https://github.com/libsdl-org/SDL_net/blob/SDL2/include/SDL_net.h)

## Syntax

```c
void SDLNet_UDP_Unbind(UDPsocket sock, int channel);
```

## Function Parameters

|           |             |                                                       |
| --------- | ----------- | ----------------------------------------------------- |
| UDPsocket | **sock**    | the UDP socket to unbind addresses from a channel on. |
| int       | **channel** | the channel of the socket to unbind.                  |

## Remarks

Note that UDP sockets at the platform layer "bind" to a nework port number,
but SDL_net's UDP sockets also "bind" to a "channel" on top of that, with
[SDLNet_UDP_Bind](SDLNet_UDP_Bind)(). But the term is used for both.

## Version

This function is available since SDL_net 2.0.0.

## See Also

- [SDLNet_UDP_Bind](SDLNet_UDP_Bind)

----
[CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction)