🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #8529

What's the problem?

#8529
From: student
Date: Fri, 14 Jun 1996 00:00
30 lines
1428 bytes
Hello,

    I have a homework to study the Network News Transfer
Protocol, and, I wrote a client program to contact with the 
news server. But ....

    I read the RFC977, and the document expressed that
the text response will be ended by CR-LF.CR-LF. But, my
                                   ^^^^^^^^^^^
program is always in the block state when it read the CR-LF.
and wait for another CR-LF.


   I don't know if the server sent the whole CR-LF.CR-LF, so
I tried to write a different program which will think that the
server will send CR-LF. to represent the end of the text response.
                 ^^^^^^
And,  it worked smoothly in the beginning, but it still have
some errors in the reading operation.

   Could anybody tell me what the problem is ?



                                                 Thanks for your help.
                                                    C.C.Yang


Technical Details
Message-ID: <4praqc$1om@netnews.ntu.edu.tw>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <4praqc$1om@netnews.ntu.edu.tw>
Subject: What's the problem?
Date: Fri, 14 Jun 1996 00:00:00 +0000
From: s1611372@mcu.edu.tw (student)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 160118416
Distribution: inet
Organization: National Taiwan University
Newsgroups: news.software.nntp