🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1015

Re: Need Assistance with the TIdFTP Component in BCB 2006...

#1015
From: Bob Gonder
Date: Mon, 25 Jun 2007 18:58
36 lines
2506 bytes
Remy Lebeau (TeamB) wrote:
>"Bob Gonder"  wrote in message
>
>> Before uploading, you get the file size from the operating system.
>
>You do not need to do that for uploads.  TIdFTP already knows the size
>of the file it is uploading, and provides that in the AWorkCountMax
>parameter of the OnWorkBegin event.

But you still need to remember it yourself, right?
OP was saying the value persisted (as a property?) in the old library.

>> In the OnWork() member, you add each AWorkCount to your running
>total
>
>That is not correct.  AWorkCount is already the total running count.
>Use it as-is.

Ok then the BDS2006 documentation is incorrect

AWorkCount	Number of bytes affected by the event

This is inside the OnWork Event, so the number of bytes per event seems to be the meanng
as prior bytes (and their events) are not affected by this particular event.

AWorkCount indicates the number of bytes sent or received in the read or write operation

Should have the word "Total" in there somewhere.

If you've already fixed the docs, it might be nice if CG hotfixed our help docs.

Feature Suggestion:
OnWork supply similar data as CopyProgressRoutine does for CopyFileEx.
(I realize I'm over a year late on that, but it just came up)
That's quite a bit of work too, I'd imagine as everything seems to go through OnWork
Maybe version11....
Technical Details
Message-ID: <r410831ej119vgkah9l8uvs2ahdj7msecc@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!64.192.187.27!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <467f387d$1@newsgroups.borland.com> <9vnv73dl97vfkq2qqs8spvb1ermjvjkgsu@4ax.com> <467fefbc@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,43e624bf4e799e37
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Need Assistance with the TIdFTP Component in BCB 2006...
Date: Mon, 25 Jun 2007 11:58:38 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <r410831ej119vgkah9l8uvs2ahdj7msecc@4ax.com>
References: <467f387d$1@newsgroups.borland.com> <9vnv73dl97vfkq2qqs8spvb1ermjvjkgsu@4ax.com> <467fefbc@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.84.229
X-Trace: newsgroups.borland.com 1182797916 69.69.84.229 (25 Jun 2007 11:58:36 -0700)
Lines: 37
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!64.192.187.27!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail