🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Trevor Cordes Mon, 11 Nov 1996 00:00
client interupt of body in transit
#12246
Author: Trevor Cordes
Date: Mon, 11 Nov 1996 00:00
54 lines
2670 bytes
(Note: this is regarding NNTP client programming or using NNTP connections via
straight telnet - it is not about any particular newsreader.)

Is there a way for a NNTP client program to interupt a message in transit?

Alternatively, is there a NNTP command to request just the first n (where n is
small, say 10) lines of a body?  Something like "PREVIEW" or something would
be nice.

A good analogy for the first questions is is using standard unix cat:

user>	$ cat long_file
cat>	file
cat>	This is the line (2/10000) or long_file
user>	^C
user>	$

In the example, there is a long file that once seeing the first few lines I
decided I didn't want to see more (or wait for 10000 lines to scroll by).
With cat one can just hit ^C in that situation and enter a new command.

So is there a way to do the same with NNTP?  Assuming there exists such a
method, it would hopefully be along the lines of:

user>	$ telnet news.foo.com 119
tel>	Trying...
tel>	Connected to news.foo.com.
tel>	Escape character is '^]'.
tel>	200 news.foo.com InterNetNews NNRP server INN 1.4 22-Dec-93 ready
user>	group news.software.nntp
tel>	211 166 19385 19550 news.software.nntp
user>	body 19550
tel>	This is the line (1/10000) of a long message
tel>	This is the line (2/10000) of a long message
tel>	This is the line (3/10000) of a long message
user>	^C
tel>	< stops sending message and awaits further commands >

It would appear ^C does not work.  I have also tried many other desperate
attempts to no avail.  All of the NNTP reference RFCs and drafts do not make
mention of a interupt option.  Perhaps one doesn't exist?  If so, confirmation
from someone would help me sleep better at night.

BTW, I don't want an answer like "just ignore the rest of the message" as my
software will be operated over a modem and messages can get quite long.

Thanks to all who help!

If you post a response, please CC via email to me as well as my local news
server is presently unreliable.


Re: client interupt of body in transit
#12231
Author: James Brister
Date: Mon, 11 Nov 1996 00:00
20 lines
1294 bytes
trevor@cyberspc.mb.ca (Trevor Cordes) writes:

> It would appear ^C does not work.  I have also tried many other desperate
> attempts to no avail.  All of the NNTP reference RFCs and drafts do not make
> mention of a interupt option.  Perhaps one doesn't exist?  If so, 
> confirmation
> from someone would help me sleep better at night.

Right. There is no way to interuppt other than to drop the (tcp)
connection. This is what Netscape does. Hopefully in the future NNTP will
be extended to deal more gracefully with this. NNTP extention work is going
on right now.

James
-- 
James Brister                                            brister@vix.com
Internet Software Consortium       http://www.isc.org    inn@isc.org 

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