Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Jan : TClientSocket write progress???

www.cryer.info
Managed Newsgroup Archive

TClientSocket write progress???

Subject:TClientSocket write progress???
Posted by:"Bo Berglund" (bo.berglu..@telia.com)
Date:Tue, 22 Jan 2008 22:24:17

My application uses a non-blocking TClientSocket to connect to a
remote server.
I want to transfer files between the endpoints so i have devised a
protocol for this and it works just fine, except for one small thing I
would like to improve:
When the files are small the transfer is nearly instantaneous, but
with larger files the link speed limits the transfer rate and so the
transfer takes some time. I would like to be able to track this in a
progressbar or similar.
Can this be done with a TClientSocket? Is there an event or similar
that fires at certain amounts of written bytes or similar?
If not, is it at all possible to have a progressbar when sending
multi-megabyte files?

Basically I need the same when receiving large files of course...

Grateful for any hints!


/BoB

Replies:

www.cryer.info
Managed Newsgroup Archive