Thread View: borland.public.cppbuilder.internet.socket
5 messages
5 total messages
Started by anthony
Tue, 27 May 2003 23:18
Threads and Indy v9 NNTP->GetBody
Author: anthony
Date: Tue, 27 May 2003 23:18
Date: Tue, 27 May 2003 23:18
10 lines
1374 bytes
1374 bytes
I'm using the NNTP component to retreive bodies of news articles. If I want to download two or more articles simultaneously I guess I need to use threads. The GetBody function only returns once the whole body has been retrieved so how is it supposed to be used in a thread? Do I need to use one of the Indy thread components, or something completely different? Thanks in advance Anthony
Re: Threads and Indy v9 NNTP->GetBody
Author: Art Alvarado
Date: Tue, 27 May 2003 23:50
Date: Tue, 27 May 2003 23:50
29 lines
1993 bytes
1993 bytes
I don't know 100% for sure, but I believe that most NNTP servers do not allow you to download multiple articles simultaneusly. The only way I could think of is to actually have multiple connections to the server, each connection in a VCL TThread object. That way you can download multiple articles simultaneously. Again, this all depends on the server you are connecting to. -Art "anthony" <anthony@nospam.com> wrote in message news:3ed3f293$1@newsgroups.borland.com... > I'm using the NNTP component to retreive bodies of news articles. If I want > to download two or more articles simultaneously I guess I need to use > threads. > > The GetBody function only returns once the whole body has been retrieved so > how is it supposed to be used in a thread? Do I need to use one of the Indy > thread components, or something completely different? > > Thanks in advance > Anthony > >
Re: Threads and Indy v9 NNTP->GetBody
Author: Remy Lebeau (TeamB)
Date: Wed, 28 May 2003 00:07
Date: Wed, 28 May 2003 00:07
16 lines
1495 bytes
1495 bytes
"anthony" <anthony@nospam.com> wrote in message news:3ed3f293$1@newsgroups.borland.com... > The GetBody function only returns once > the whole body has been retrieved Correct. > so how is it supposed to be used in a thread? You would need to establish multiple connections to the server, one connection per thread. Gambit
Re: Threads and Indy v9 NNTP->GetBody
Author: Remy Lebeau (TeamB)
Date: Wed, 28 May 2003 18:33
Date: Wed, 28 May 2003 18:33
13 lines
1581 bytes
1581 bytes
"Chad Z. Hower aka Kudzu" <cpub@hower.org> wrote in message news:Xns9389E13BF9B11cpub@127.0.0.1... > Many NNTP servers limit the number of simulteaneous > connections per IP though, so watch out for connection refusals. True enough. That is why newsreaders that support multiple connections usually provide an option to allow the user to specify the maximum number of connections to make at a time :-) Gambit
Re: Threads and Indy v9 NNTP->GetBody
Author: Chad Z. Hower aka Kudzu
Date: Thu, 29 May 2003 03:08
Date: Thu, 29 May 2003 03:08
19 lines
1820 bytes
1820 bytes
"Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> wrote in news:3ed3fd3c$1
@newsgroups.borland.com:
> You would need to establish multiple connections to the server, one
> connection per thread.
Many NNTP servers limit the number of simulteaneous connections per IP
though, so watch out for connection refusals.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Want more Indy stuff? Try the Atozed Indy Portal at
http://www.atozedsoftware.com/
* More Free Demos
* Free Articles
* Extra Support
ELKNews - Get your free copy at http://www.atozedsoftware.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads