BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Indy 9 in a Cyber Cafe software

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
WS
Guest





PostPosted: Tue Dec 20, 2005 3:30 pm    Post subject: Indy 9 in a Cyber Cafe software Reply with 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?


Back to top
Guillem
Guest





PostPosted: Wed Dec 21, 2005 2:43 pm    Post subject: Re: Indy 9 in a Cyber Cafe software Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.