PDA

Click to See Complete Forum and Search --> : nntp using Winsock


cedx
Feb 7th, 2000, 10:55 AM
Hi,

How do I detect the end of a response to a "list" command to a nntp server using winsock?

The list is quite long and the response does not come all at once. I need to know when does the response end so that I could prepare for the next incoming message whatever it may be.

I tried
If InStr(Received, vbLf & ".") Then
isList = False
End If
but it didn't work.

Please help.

Thanks in advance. :)

agent
Sep 26th, 2003, 01:01 AM
before anybody get's pissed at me for this, like happened last time i did this, YES I DO REALIZE THIS POST IS FROM A LONG TIME AGO!!!

anyway...

I would think that you could log into the news server with a seperate winsock control, dedicated specifically to downloading the list when needed. You could use a time out period: disconnect if no data received after x minutes.

Would you mind pointing me in the proper direction for more info on the Usenet protocol? I'm writing an "automatic" client (for archiving, not spaming).