🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

SDLNet : UDP sockets and channels

Started by
-1 comments, last by michaweyel 19 years, 11 months ago
Hey guys. Is there anyone using SDLNet-udp with channel binding? I was wondering if it is possible to assign more than one channel to a single UDP socket. Because when I do so and try to receive packets on that socket afterwards, I only receive packets from IP addresses of the channel that was assigned last. So it seems that only one channel can be bound to a socket at a time. But if so, what is SDLNET_MAX_UDPCHANNELS good for, anyway? Do I have to create a new UDP socket, if I want to use channels and want to handle more that 4 (SDLNET_MAX_UDPADDRESSES) clients at the same time? Thanks, Michael

This topic is closed to new replies.

Advertisement