Board index » delphi » Troubles thinking in INDY...

Troubles thinking in INDY...


2004-06-30 01:25:10 PM
delphi118
i am a newbie here! :P
here ie the problem... i am making a multiplayer game. in this, 8 computers
connects in to one, and all the informatioon they send to the server must me
reflected to all of them.
so, how may i do this??? i can send the messages to the server... but how to
send from server do the 8 clients??? please help me!!!
Erick Engelhardt from Brazil
 
 

Re:Troubles thinking in INDY...

Just send changes to all, using threadlist to get the threads and then the
connection object where you can send your data.
Use UDP server, to make sure that the send delay is as low as it can get.
You could loose packets, but it will only be seen on the clients as lagging.
Remember to make all computations for hits etc. on the server.
-Atle
 

Re:Troubles thinking in INDY...

sorry man, but i couldnt understand... can u send me some demos? or some
site? i cant find it... i am tirad of searching...
thanks man,,,,
"Atle Smelvær" <XXXX@XXXXX.COM>writes
Quote
Just send changes to all, using threadlist to get the threads and then the
connection object where you can send your data.

Use UDP server, to make sure that the send delay is as low as it can get.
You could loose packets, but it will only be seen on the clients as
lagging.
Remember to make all computations for hits etc. on the server.

-Atle