-
June 12th, 2012, 04:46 PM
#1
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
-
June 13th, 2012, 03:40 PM
#2
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
-
June 26th, 2012, 10:55 PM
#3
Re: Winsock list local servers
Thanks, S_M_A! That was exactly what I needed.
Appreciate the help.
-Kaleb
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|