[SDL] UDP_Bind and IPaddress

Karl-Robert Ernst k-r.ernst at my-mail.ch
Tue Nov 21 11:21:14 PST 2006


Hello everyone,

actually I am coding an app which uses SDL_net with UDP sockets for network 
communication. I am now wondering what UDP-Bind does with the IPaddress 
object. When calling bind like this: 
// const IPaddress address;
ushort er = SDLNet_UDP_Bind(socket, 0, &address);
gcc tells that it is not allowed to pass the IPaddress as const.
Does UDP_Bind actually changes the IPaddress and if not, why it is not 
declared as const?

Regards.
Karl




More information about the SDL mailing list