I had a look at GNet, TNet, BNet and ENet to get an idea of how to manage UDP broadcasts. Afaik is a broadcast the only way to create a list of "local" game servers.
Has someone managed a UDP broadcast or did someone find another way to create a list of local game servers?
I know you have to set the socket to broadcast mode, but the public commands of all the network modules mentioned above does not support such an option (correct me if I'm wrong).
In standard C you would use setsockopt() to change some options of the socket. I found a part in Pub.Stdc that use the setsockopt() function. Maybe this is a base to start from. But I don't know how.
Hope someone can help...thanks a lot!
|