Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Oct : Re: Byte count in Indy 10 FTP

www.cryer.info
Managed Newsgroup Archive

Re: Byte count in Indy 10 FTP

Subject:Re: Byte count in Indy 10 FTP
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Wed, 10 Oct 2007 09:52:19

"Mikael Lenfors" <mikael@lenfors.se> wrote in message
news:470c6875$1@newsgroups.borland.com...

> I'm using TIdFTP from Indy 10 for my FTP traffic. Now one
> of my customers got a huge bill on a dialup line and wants to
> see how many bytes was actually transfered. How can I get this figure?

You need to use the OnWork... events for the file transfer traffic, and
attach an Intercept component, such as TIdLogEvent, to the TIdFTP for the
command/response traffic.

Alternatively, use an external packet sniffer instead, such as
Ethereal/Wireshark.  If you want programmic access to the data, then use a
packet capture library, such as WinPCap (which is what Ethereal/Wireshark
uses internally).


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive