daveyboy
Mar 26th, 2002, 06:36 PM
A while ago I created a Draughts game using swing (was only 2 players), and I've decided to update it, so that you can play over a network....
I have a basic knowledge of the networking side, I'd be able to create Sockets, and use streams to pass objects or strings to and from the two clients, but my question is this:
How do I start up the client, allow it to poll for another client waiting for a game, and then after a time delay let it sit and wait for another client to poll for it?
I was thinking about broadcasting and awaiting a response, and then waiting for someone else to broadcast...
Does anyone have any suggestions????? (examples of code would be warmly welcomed!!!)
I have a basic knowledge of the networking side, I'd be able to create Sockets, and use streams to pass objects or strings to and from the two clients, but my question is this:
How do I start up the client, allow it to poll for another client waiting for a game, and then after a time delay let it sit and wait for another client to poll for it?
I was thinking about broadcasting and awaiting a response, and then waiting for someone else to broadcast...
Does anyone have any suggestions????? (examples of code would be warmly welcomed!!!)