Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Nov : Need help/advice

www.cryer.info
Managed Newsgroup Archive

Need help/advice

Subject:Need help/advice
Posted by:"York" (offi..@onlinebg.info)
Date:Thu, 16 Nov 2006 11:45:29

Hello,
I have the following scenario:
Two idTCPClients are connected to a idTCPServer on two different ports.
(Indy 9)
There are two worker threads in the client application one for each
connection.
The data transfered over the first connection is "time critical" i.e. should
be delivered with as minimum delays as possible. The data transfered over
the second connection is not time critical.
The first connection (the "time critical" one) usually carries about 5 kb/s
constant load and the second one transfers data packets that may reach about
50 - 60 KB each but not constantly.
When the client is on a dial up (or on a slow connection) it happens that
when there is data to be transfered on both the first and the seccond
connection the first (time critical) one experiences delays.
I need to find out how to limit the speed of the seccond connection so that
it never consumes more than let's say 15 kb/s whihc is enough in our case.
We have put as a requirement for our customers that they need at least 20
KB/s connection speed.
So if I limit the data transfered over the slow connection up to 15kb/s then
I'll have 5 kb/s left for the time critical one. (I'm assuming that they
have 20 KB/s available)

Will a TIdHandleThrottle on the seconnd connection do the job? or some other
mechanism is needed?

Any suggestions are appreciated.
Thanks in advance.

Kind Regards

Replies:

www.cryer.info
Managed Newsgroup Archive