🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #23839

Connecting to an NNTP Server...

#23839
From: Randy K. Secrist
Date: Tue, 03 Jul 2001 02:46
22 lines
2430 bytes
This is a great newsgroup question - since it deals with connecting to
newsgroups....

I am writing a nntp client using java, and have a few options.  I could use
the java.net.Socket class to socket the connection and handle all
input/output one byte at a time, but I don't want to reinvent the wheel.  I
noticed a javax.mail.internet.NewsGroup class, however it is basically just
a container for a newsgroup - nothing that deals with establishing the
connection.

So - I was thinking - JNDI - connecting using the same method which I have
used to connect to LDAP - bind to a context, yada yada yada - but I haven't
ever done this with anything BUT Ldap, and can't find any good documentation
on using JNDI with nntp.

Does anyone have any other ideas - suggestions?  Or, should I dig in, socket
the connection and reinvent the wheel?  I already did this for SMTP - then
found out about javamail later... :)  Being a student, I am young and am use
to creating wheels from squares - but must I do it the hard way everytime?

Randy
www.secristfamily.com
Technical Details
Message-ID: <Ama07.841$n72.540160@news.uswest.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.frii.net!easynews!feed.news.qwest.net!news.uswest.net.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d6b,903b09b806c83a2f,start
X-Google-Attributes: gid111d6b,public
X-Google-Thread: f5d71,903b09b806c83a2f,start
X-Google-Attributes: gidf5d71,public
X-Google-Thread: f6cb0,903b09b806c83a2f,start
X-Google-Attributes: gidf6cb0,public
X-Google-Thread: 10a146,903b09b806c83a2f,start
X-Google-Attributes: gid10a146,public
X-Google-Thread: 113ae9,903b09b806c83a2f,start
X-Google-Attributes: gid113ae9,public
X-Google-ArrivalTime: 2001-07-02 19:47:03 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.frii.net!easynews!feed.news.qwest.net!news.uswest.net.POSTED!not-for-mail
From: "Randy K. Secrist" <r.secrist@m.cc.utah.edu>
Newsgroups: cn.bbs.comp.lang.java,comp.lang.java,comp.lang.java.help,comp.lang.java.misc,comp.lang.java.programmer
Subject: Connecting to an NNTP Server...
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <Ama07.841$n72.540160@news.uswest.net>
Date: Mon, 2 Jul 2001 20:46:55 -0600
NNTP-Posting-Host: 63.226.106.233
X-Trace: news.uswest.net 994128416 63.226.106.233 (Mon, 02 Jul 2001 21:46:56 CDT)
NNTP-Posting-Date: Mon, 02 Jul 2001 21:46:56 CDT