Thread View: news.software.readers
3 messages
3 total messages
Started by mhall
Fri, 25 Jun 1993 02:46
Aborting an article?
Author: mhall
Date: Fri, 25 Jun 1993 02:46
Date: Fri, 25 Jun 1993 02:46
22 lines
1609 bytes
1609 bytes
Hello- I have written a newsreader for dialup connections, i.e., you dial up a host, and then the program takes over, instructs the host to start a telnet <port 119> session, and issues all the NNTP calls. So far it has gone over well. However, if a user wishes to halt the downloading of a very large article, I have a problem - I can't figure out how to get the newsserver to halt transmission of the article. GNUS seems to have this capability (you can just hit control-G and it stops). How do I implement this? Right now, I just have the user wait while I discard all the data coming in. (I realize that some of the problem also lies in the data connection between the host computer and the users machine. However, most news servers seem to be slow enough that if I could stop them from transmitting, I'd curb a lot of the waste as well) Any help for me? If this question needs to be directed somewhere else, please let me know. -matt
Re: Aborting an article?
Author: Rich Salz
Date: Fri, 25 Jun 1993 12:56
Date: Fri, 25 Jun 1993 12:56
14 lines
1172 bytes
1172 bytes
In <C95p3H.J1y@news.cis.umn.edu> mhall@mermaid.micro.umn.edu writes: > I can't figure out how to get the newsserver >to halt transmission of the article. GNUS seems to have this capability >Right now, I just have the user wait while I discard all the data coming >in. That's what GNUS is doing. In the background it is sucking up the data while you do other stuff. The NNTP protocol has no way to interrupt output. You could just close the connection, open a new one, and reset your state but that's likely to be pretty expensive. /r$
Re: Aborting an article?
Author: Pope Clifton
Date: Fri, 25 Jun 1993 19:46
Date: Fri, 25 Jun 1993 19:46
30 lines
2272 bytes
2272 bytes
mhall@mermaid.micro.umn.edu wrote:
: I have written a newsreader for dialup connections, i.e., you dial
: up a host, and then the program takes over, instructs the host to start
: a telnet <port 119> session, and issues all the NNTP calls.
..
: However, if a user wishes to halt the downloading of a very large
: article, I have a problem - I can't figure out how to get the newsserver
: to halt transmission of the article.
..
: (I realize that some of the problem also lies in the data connection
: between the host computer and the users machine. However, most news
: servers seem to be slow enough that if I could stop them from
: transmitting, I'd curb a lot of the waste as well)
I think what you want to do is write your own dial-in server on the host
instead of using telnet. That way you could give the server a command to
dump the rest of the article. There will be some delay, but almost
certainly less than downloading it all via modem, and this solution would
give you more flexibility for adding other useful features later.
It seems like the kind of thing one could do in a page or so of Perl using
its socket commands to get started, recode in C when you want it to hum.
I'm not volunteering, but I've been thinking about how to do this and that's
my best take so far.
-- Clifton
--
cliftonr@netcom.com Home: +1 808 521 9073 Work: +1 808 625 3234
Clifton Royston, Pope of the Church of the Subgenius in Paradise
Them helpis no conclusionis sle / Timor mortis conturbat me.
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