BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

News Client

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Anton Izrailtyanko
Guest





PostPosted: Wed Nov 12, 2003 8:13 am    Post subject: News Client Reply with quote



Hello, All!

Please help.
I'm new to Indy, what components should I use of it to create a news (and
maybe later post) client.
Best of all - links on docs and examples.
Thanks.

With best regards, Anton Izrailtyanko. E-mail: [email]stalker780 (AT) yandex (DOT) ru[/email]


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Nov 12, 2003 8:38 am    Post subject: Re: News Client Reply with quote




"Anton Izrailtyanko" <stalker780 (AT) yandex (DOT) ru> wrote


Quote:
I'm new to Indy, what components should I use of it to
create a news (and maybe later post) client.

NNTP is the news protocol, so TIdNTTP is the news client component. It
supports both downloading and posting messages.


Gambit



Back to top
Anton Izrailtyanko
Guest





PostPosted: Wed Nov 12, 2003 12:59 pm    Post subject: Re: News Client Reply with quote



Hello, Remy!
You wrote on Wed, 12 Nov 2003 00:38:14 -0800:

RLT> NNTP is the news protocol, so TIdNTTP is the news client component.
RLT> It supports both downloading and posting messages.

1. I set Host property to newsgroups.borland.com
2. Username and Password are left empty, Port is 119.
3. Connection is successful.
4. Where I must set the newsgroup name to
borland.public.delphi.internet.winsock?
5. And how can I check if there are any messages in newsgroup? Count them?
Receive their IDs? and finaly receive their headers and bodies?

I didn't find|understand Smile anything in help.

With best regards, Anton Izrailtyanko. E-mail: [email]stalker780 (AT) yandex (DOT) ru[/email]


Back to top
Anton Izrailtyanko
Guest





PostPosted: Wed Nov 12, 2003 2:10 pm    Post subject: Re: News Client Reply with quote

Hello, Remy!
You wrote on Wed, 12 Nov 2003 00:38:14 -0800:

RLT> NNTP is the news protocol, so TIdNTTP is the news client component.
RLT> It supports both downloading and posting messages.

1. I set Host property to newsgroups.borland.com
2. Username and Password are left empty, Port is 119.
3. Connection is successful.
4. I call GetNewNewsList('borland.public.delphi.internet.winsock', (Now -
3), True, '');
5. OnNewNewsList contains only ShowMessage(AMsgID);

I want to get news for last 3 days.
But OnNewNewsList doesn't occur. Why?

With best regards, Anton Izrailtyanko. E-mail: [email]stalker780 (AT) yandex (DOT) ru[/email]


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Nov 12, 2003 7:08 pm    Post subject: Re: News Client Reply with quote


"Anton Izrailtyanko" <stalker780 (AT) yandex (DOT) ru> wrote


Quote:
4. I call GetNewNewsList('borland.public.delphi.internet.winsock',
(Now - 3), True, '');

It is *strongly* advised that you do not use GetNewNewsList(). Internally,
it uses the NEWNEWS command which is very outdated and very slow to execute
on servers. The better approach is to keep track of the last MsgId that you
download each time, and then when you reconnect later, use the MsgHigh and
MsgLow properties (which are set when you call SelectGroup()) to help you
determine the necessary range string to pass to the XOVER() method. Then
use ParseXOver() to extract the message details for the downloaded list.
This is much faster than using GetNewNewsList(), and much more supported on
modern servers.

Quote:
But OnNewNewsList doesn't occur. Why?

The only way that can occur is if the NEWNEWS command returned an empty
list.


Gambit



Back to top
Captain Jake
Guest





PostPosted: Wed Nov 12, 2003 10:19 pm    Post subject: Re: News Client Reply with quote

"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote

Quote:
The better approach is to keep track of the last MsgId that you
download each time, and then when you reconnect later, use the MsgHigh and
MsgLow properties (which are set when you call SelectGroup()) to help you
determine the necessary range string to pass to the XOVER() method. Then
use ParseXOver() to extract the message details for the downloaded list.
This is much faster than using GetNewNewsList(), and much more supported
on
modern servers.

Indeed. That is exactly how I do it in my newsreader and it seems to work
fine.



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Nov 12, 2003 10:48 pm    Post subject: Re: News Client Reply with quote


"Captain Jake" <johnjac76[nospam]@comcast.net> wrote


Quote:
Indeed. That is exactly how I do it in my newsreader
and it seems to work fine.

That's how a lot of the current newsreaders do it nowadays.


Gambit



Back to top
Simon Devlin
Guest





PostPosted: Sat Nov 15, 2003 10:05 pm    Post subject: Re: News Client Reply with quote

Probably the best example around is Colin Wilson's Xananews
(http://www.wilsonc.demon.co.uk)

You'll have to get a bunch of other stuff (all freely available) to compile
it, but it has a bunch of nice features and is great learning tool. You can
get some basic NNTP demo from
http://www.indyproject.org/indy/demodownloads/I9D6_Demos_24Nov02.zip

Regards

"Anton Izrailtyanko" <stalker780 (AT) yandex (DOT) ru> wrote

Quote:
Hello, All!

Please help.
I'm new to Indy, what components should I use of it to create a news (and
maybe later post) client.
Best of all - links on docs and examples.
Thanks.

With best regards, Anton Izrailtyanko. E-mail: [email]stalker780 (AT) yandex (DOT) ru[/email]





Back to top
Anton Izrailtyanko
Guest





PostPosted: Mon Nov 17, 2003 8:56 am    Post subject: Re: News Client Reply with quote

Hello, Simon!
You wrote on Sat, 15 Nov 2003 22:05:43 -0000:

Quote:
Probably the best example around is Colin Wilson's Xananews
(http://www.wilsonc.demon.co.uk)

Thanks a lot! That's what I needed, working examples.

Quote:
You'll have to get a bunch of other stuff (all freely available) to
compile
it, but it has a bunch of nice features and is great learning tool. You
can
get some basic NNTP demo from
http://www.indyproject.org/indy/demodownloads/I9D6_Demos_24Nov02.zip

I already have them, I didn't find useful demos of NNTP there.

With best regards, Anton Izrailtyanko. E-mail: [email]stalker780 (AT) yandex (DOT) ru[/email]



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.