NNTP & Socket - How to interrupt?

Posted by Cosmo on Stack Overflow See other posts from Stack Overflow or by Cosmo
Published on 2009-11-27T08:52:42Z Indexed on 2010/04/01 4:03 UTC
Read the original article Hit count: 392

Filed under:
|

Hi. I'm sending a message to a NNTP server in order to fetch an article's body. I don't want to wait for the answer to complete, cause I only need the first 3 lines from the body. How can I interrupt the transfer and move on to the next article? Now when I request another's article message body, I still get data from the previous one.

The only way that worked for me, was to close the stream and reopen it. In my opinion this is a little bit hardcore, cause I have to login to the server every time I need a new file.

Any help would be appreciated.

Kind Regards.

© Stack Overflow or respective owner

Related posts about c#

Related posts about socket