writing a small server

fguihen

Junior Contributor
Joined
Nov 10, 2003
Messages
248
Location
Eire
i want to improve my programming ( or get back to my programming after a bit of an occupational detour).

i want to create a simple 2 player game, like pong, where there is constant action (in this case, the ball moving).i want to be able to play this between two computers, linked by a server. my aim is to write the server to allow the two pc's to play the game and the client to be on each pc. how do i link the 2 client apps, and keep the ball in the same place on the screen in each client? does it involve constant sending of data?

would i be better to go through the server or just use the server to link the two clients?

has anyone any examples i may look at or tutorials?

thanks all
 
You do not need an intermediate server to do this. Just make the application able to function as both a server and a client. Have the server listen on a specific port.

And, yes, you will need to send data every time something is updated on one of the clients.
 
Back
Top