Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Sep : Re: Using OnWork Begin For Generating A Progress Bar

www.cryer.info
Managed Newsgroup Archive

Re: Using OnWork Begin For Generating A Progress Bar

Subject:Re: Using OnWork Begin For Generating A Progress Bar
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Tue, 11 Sep 2007 12:29:08

"Francis" <francis@taconic.net> wrote in message
news:46e6d1b1$1@newsgroups.borland.com...

> estimate the progress bar based on
>
> multiple calls to XOVER ?

Like I said, you already know the range of available MsgIDs when you first
connect to a newsgroup.  So that tells you the approximate number of
available messages in the newsgroup.  You would also have to know the MsgID
that you are going to start downloading from.  Subtract that from the number
of total messages, and you have a rough idea of how many messages you are
going to be downloading with the XOVER() method.

Unfortunately, there is no exact way to determine the precise number of
messages ahead of time.  Deleted messages, skipped IDs, etc will throw off
the counting.  That is why you shouldn't really try to implement a progress
bar for newsgroups at all.

> by breaking up the groupmin and groupmax into
>
> appropriate number of calls
>
> somewhere between 1 XOVER call and 100 XOVER calls

XOVER can return more than 1 message per call.  The XOVER command was
designed to be used with ranges in order to maximize the amount of data that
is downloaded while minimizing the bandwidth overhead.

> I believe this is what your getting at

Sorry, not even close.  I don't have time right this moment to make you an
example, but I'll post one later tonight for you.


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive