🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #953

Re: an idea to consider

#953
From: Owen Green
Date: Tue, 09 Jul 2002 18:28
43 lines
3435 bytes
> So, if I was to implement line oriented protocol I would just be reading
> in UTF-8 strings only. Is that right?
I'm not sure what you mean.

> Then when I read in the string, I would have to use StringTokenizer to
> separate out a command like: shutdown appname<CR><LF>
> to separate both the command from the added argument?  In this case, the
> name of the application?
You could do that, or if you are sure that your commands will always have
the same number of tokens you could hardwire it and just use String.indexOf
instead. I'd probably go with a tokenizer instead though, or have some kind
of command handling archtiecture that has dedicated classes for parsing and
processing each command.

> Why does there always have to be carraige return and line feed
> characters at the end of every command?  Don't they automatically appear
> at the end of the string anyway when we press the ENTER key?  I mean, we
> don't actually see them, they're just appended in the terminal window to
> whatever we type, don't they?  So, really, in the terminal window we
> would just type:
> shutdown appname [ENTER]?
Yeah, but this doesn't hold when you're sending commands it programatically.
The server also needs some standard token to delimit command strings.

> Does this Oro have a web address where I can obtain these NetComponents
> classes you mentioned?  I've tried www.oro.com and www.oro.org. Both
> were strange web sites.  Not what I'm looking for I don't think.
http://www.savarese.org/oro/software/NetComponents.html

It's worth pointing out that development future of these components is kind
of uncertain at the moment, but they work ok.

> Do you recommend a particular Telnet program I can get?  If I'm going to
> use one I might as well get one that suites my purposes.
I like TeraTerm
http://hp.vector.co.jp/authors/VA002416/teraterm.html

Or it may be worth your while in the longer run to get a decent shell
environment on your windows box courtesy of cygwin, which provides a Unix
like environment for win32 (which you can get telnet clients for, needless
to say):
http://www.cygwin.com/
Technical Details
Message-ID: <3d2b2be9_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!newsfeed.ision.net!ision!fu-berlin.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3D279D25.59AA52E@hfx.eastlink.ca> <3d27a0b2_2@dnews> <3D2861BB.63220DF5@hfx.eastlink.ca> <MPG.17923b35889aef9498b7f9@newsgroups.borland.com> <3D28A22A.89CB73DC@hfx.eastlink.ca> <MPG.1793793e26a87ab98b7fd@newsgroups.borland.com> <3D29FE4E.C3EEF5B5@hfx.eastlink.ca> <MPG.1793eed4e5e42ee798b80b@newsgroups.borland.com> <3D2A48B8.29314379@hfx.eastlink.ca> <MPG.17946a495a7d5f5e98b812@newsgroups.borland.com> <3D2B05DA.EE3D2DC2@hfx.eastlink.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,4157c064c52214d4
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-07-09 11:41:35 PST
From: "Owen Green" <owen@begonefoulmachine.kennulz.demon.co.uk>
Newsgroups: borland.public.jbuilder.java.api
References: <3D279D25.59AA52E@hfx.eastlink.ca> <3d27a0b2_2@dnews> <3D2861BB.63220DF5@hfx.eastlink.ca> <MPG.17923b35889aef9498b7f9@newsgroups.borland.com> <3D28A22A.89CB73DC@hfx.eastlink.ca> <MPG.1793793e26a87ab98b7fd@newsgroups.borland.com> <3D29FE4E.C3EEF5B5@hfx.eastlink.ca> <MPG.1793eed4e5e42ee798b80b@newsgroups.borland.com> <3D2A48B8.29314379@hfx.eastlink.ca> <MPG.17946a495a7d5f5e98b812@newsgroups.borland.com> <3D2B05DA.EE3D2DC2@hfx.eastlink.ca>
Subject: Re: an idea to consider
Date: Tue, 9 Jul 2002 19:28:54 +0100
Lines: 45
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 193.237.54.9
Message-ID: <3d2b2be9_2@dnews>
X-Trace: dnews 1026239465 193.237.54.9 (9 Jul 2002 11:31:05 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!newsfeed.ision.net!ision!fu-berlin.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!dnews