Winsock list local servers
Hello Codeguru members!
(first post, woohoo)
I have been programming a multiplayer game for a friend, using asynchronous (non-blocking) sockets. Usually to connect, I just have people enter the IP of the server into the console and have it connect from that method. But people can forget IP's or mis-type them, so I was wondering if I could take a different approach.
In Quake 2, a person can be the designated host for a game. Other clients can simply view a list of available local servers, click on they want, and they will be connected.
If anyone at least could begin to explain how I might go about doing this, I would be more than willing to listen.
Thanks!
-Kaleb
Re: Winsock list local servers
If you are on a private LAN you could have the server broadcast at regular intervals and the clients to listen on that broadcast.
http://forums.codeguru.com/archive/i.../t-340877.html
http://stackoverflow.com/questions/3...-using-winsock
Re: Winsock list local servers
Thanks, S_M_A! That was exactly what I needed. :)
Appreciate the help.
-Kaleb