Article View: news.software.readers
Article #65688Re: Xnews: A speed limiter, please
From: Murray Peterson
Date: Sun, 17 Sep 2000 00:00
Date: Sun, 17 Sep 2000 00:00
47 lines
2556 bytes
2556 bytes
GigDR@bluewin.de (Dominik R.) wrote:
>How do you make Xnews running through a proxy? And I would like to
>s�ecifically limmit the bandwidth of Xnews. Because X connects
>directly to my ISP�s Newsserver it has the best connection of all
>Internet tools and therefore sucks up ALL the bandwidth. Surfing
>the net almost never sucks up all the bandwidth.
>I have a 30 kbs cable, now I would like for Xnews to take 20 or
>about and that would leave enough for all the other net tools...
I don't know if you are a programmer or not, but it's a pretty simple
program to write. Perhaps someone has already written one, but I
haven't looked. Here's a basic algorithm:
Read isp host name from command line argument
Read delay time from command line argument
Accept connection on port 119 from newsreader (reader_port)
Establish TCP/IP connection to ISP host, port 119 (isp_port)
while (reader_port connected)
{
select(reader_port, isp_port)
if (data on reader_port)
{
read data from reader_port
write data to isp_port
}
if (data on isp_port)
{
read data from isp_port
write data to reader_port
sleep for delay time
}
}
Re-configure XNews to connect to localhost, port 119 (the proxy),
start the proxy up, start xnews, and Bob's your uncle.
If you start coding right now, you could have your bandwidth limiter
running before the end of the day :-)
--
Murray Peterson
Email: murray_peterson@home.com (remove underscore)
URL: http://www.members.home.net/murraypeterson
Technical Details
Message-ID:
<8FB26F2BCfarkle@24.64.2.57>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<8FB18FA1Cgigdrbluewinde@195.34.133.35> <8q124e$k89@dispatch.concentric.net> <8FB1DD871farkle@24.64.2.57> <8q1hrd$dft@dispatch.concentric.net> <8FB1E2F04farkle@24.64.2.57> <8FB296295gigdrbluewinde@195.34.133.35>Show Full Headers
Complete Article Headers
Message-ID: <8FB26F2BCfarkle@24.64.2.57> Subject: Re: Xnews: A speed limiter, please Date: Sun, 17 Sep 2000 00:00:00 +0000 From: mwp@home.com.invalid (Murray Peterson) References: <8FB18FA1Cgigdrbluewinde@195.34.133.35> <8q124e$k89@dispatch.concentric.net> <8FB1DD871farkle@24.64.2.57> <8q1hrd$dft@dispatch.concentric.net> <8FB1E2F04farkle@24.64.2.57> <8FB296295gigdrbluewinde@195.34.133.35> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 670874255 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.ab.home.com 969208313 24.64.52.234 (Sun, 17 Sep 2000 09:31:53 PDT) Organization: Excite@Home - The Leader in Broadband User-Agent: Xnews/03.08.28 NNTP-Posting-Date: Sun, 17 Sep 2000 09:31:53 PDT Newsgroups: news.software.readers