Click to See Complete Forum and Search --> : Newbie to Network Programming - request help on first simple project


stephenprogrammer07
June 21st, 2007, 10:40 AM
Hi

I'm making progress with a little game in C++ but I'm completely new to c++ network programming.


Here are my goals.
(1) I think I would like to have the user able to establish a peer to peer connection either over a lan or over the internet (most typically over the internet) - by some means - if the player has to call a friend or more by phone to give them some sort of code/address to establish the connection. That would be fine for what i'm doing. (I'm assuming the players will not have unique IP addresses as seen in the case with AOL users).

(2) After the connection is established. I just need to be able to accurately detect which player was first in hitting a buzzer button - within miliseconds of accuracy.

after determining who which player hit the spacebar first, then I would pass text back and forth - which can be slower.

Questions:
1. Any thoughts on how to meet these goals reliably.

2. Does this solution demand that I have a server in the middle that does the decision making as to who was first and pass the information back ? Or can I just go direct peer to peer.

I'm using a game engine with no network framework.

Stephen