Article View: cn.bbs.comp.lang.java
Article #23841Re: Connecting to an NNTP Server...
From: Ken Kalish
Date: Tue, 03 Jul 2001 11:49
Date: Tue, 03 Jul 2001 11:49
38 lines
2487 bytes
2487 bytes
On Mon, 2 Jul 2001 20:46:55 -0600, "Randy K. Secrist" <r.secrist@m.cc.utah.edu> wrote: >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. Randy, search for "knife" which is a third party provider for nntp. > >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 > > -- Regards, Ken Kalish there is no Java cartel
Technical Details
Message-ID:
<3b43b122.3084374@news.intergrafix.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mailReferences:
<Ama07.841$n72.540160@news.uswest.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d6b,903b09b806c83a2f X-Google-Attributes: gid111d6b,public X-Google-Thread: f5d71,903b09b806c83a2f X-Google-Attributes: gidf5d71,public X-Google-Thread: 113ae9,903b09b806c83a2f X-Google-Attributes: gid113ae9,public X-Google-Thread: 10a146,903b09b806c83a2f X-Google-Attributes: gid10a146,public X-Google-Thread: f6cb0,903b09b806c83a2f X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2001-07-03 04:49:51 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: kkal@javakk.com (Ken Kalish) Newsgroups: cn.bbs.comp.lang.java,comp.lang.java,comp.lang.java.help,comp.lang.java.misc,comp.lang.java.programmer Subject: Re: Connecting to an NNTP Server... Date: Tue, 03 Jul 2001 11:49:44 GMT Organization: yes Message-ID: <3b43b122.3084374@news.intergrafix.net> References: <Ama07.841$n72.540160@news.uswest.net> X-Newsreader: Forte Agent 1.5/32.452 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: newsabuse@supernews.com Lines: 39