Im looking at this from a very abstract level. But Im basically looking for some guidance. Here how I 'think' communication works between the server and clients, please tell me if im wrong...
the server is started and listens for connections
a client sends a message to the server requesting to join
the server saves the ip/port info to a list and says ok
.... repeat for all connecting clients ...
so, whenever a client machine moves or performs an action, it must send a message to the server, the server then forwards this information to the other clients to sync them up?
for instance, lets say client#1 moves forward....
the server recieves the message to move from client#1 and forwards the message to client#2/#3/#4
so, in essence, is that all the server does, is forward messages/events?
if so, does the server need to track game objects, or is this done by the clients on a global scale ( ie. all clients are replicating the same enviornment on all other clients via the messages it recieves from the server )?
thanks for any assistance,
Stellar
the server is started and listens for connections
a client sends a message to the server requesting to join
the server saves the ip/port info to a list and says ok
.... repeat for all connecting clients ...
so, whenever a client machine moves or performs an action, it must send a message to the server, the server then forwards this information to the other clients to sync them up?
for instance, lets say client#1 moves forward....
the server recieves the message to move from client#1 and forwards the message to client#2/#3/#4
so, in essence, is that all the server does, is forward messages/events?
if so, does the server need to track game objects, or is this done by the clients on a global scale ( ie. all clients are replicating the same enviornment on all other clients via the messages it recieves from the server )?
thanks for any assistance,
Stellar
The post was edited 2 times, last by Stellar ().