 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
WS Guest
|
Posted: Tue Dec 20, 2005 3:30 pm Post subject: Indy 9 in a Cyber Cafe software |
|
|
I am developing a LAN House software with Indy 9.
After the user logs in the client machine, at every second the database and
both the server and the client GUI will be updated with the remainning
time,
time elapsed and the session ending time.
What is the best aproch to this?
A timer on the client, sending the information to the server at every
second?
A timer in the server, sending the information to every connected clieint?
A timer for every client on the server?
Other suggestions?
|
|
| Back to top |
|
 |
Guillem Guest
|
Posted: Wed Dec 21, 2005 2:43 pm Post subject: Re: Indy 9 in a Cyber Cafe software |
|
|
WS wrote:
| Quote: | I am developing a LAN House software with Indy 9.
After the user logs in the client machine, at every second the
database and both the server and the client GUI will be updated with
the remainning time, time elapsed and the session ending time.
What is the best aproch to this?
A timer on the client, sending the information to the server at every
second?
A timer in the server, sending the information to every connected
clieint? A timer for every client on the server?
Other suggestions?
|
i would suggest following:
1- when logged in the client sends to the server the beginning time
(note that the server will not necessarily receive it immediately)
2- the client sends every x secs (i would say 5-10) its own remaining
time
3- the server gets the info and uses it to compare and update its own
information. If by any chance the information is too different, the
server should send a message to the client to correct its time
remaining.
In this scheme the client should be able to disconnect itself when its
time is gone or the server tells it to do so. This way you avoid
overhead generated by sending every sec a message
Good luck
--
Best regards :)
Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|