🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #13471

Re: Communicating with Telnet

#13471
From: Jim Browne
Date: Thu, 21 Jan 1993 06:07
54 lines
3194 bytes
HEILEI@nippi.hut.fi (Heikki Leinonen) writes:


>  How to communicate with NCSA Telnet ?

>  Here's the problem:  I have NCSA Telnet 2.5 running in a
>  Quadra 900/System 7.0.1, with MacTCP/Internet-access to a
>  Unix-machine (Sun Sparcstation IPX).  The program I'm writing
>  with Think C 5.0 should be able to give commands to Telnet and
>  control the process running in the Sparcstation.  It should also
>  be able to read the text from Telnet's session window.

>  So what's the best/easiest/most efficient way to do this ?  Is
>  there a way to do this at all ?

Not currently.  We've been putting AppleEvents off lately in favor of some other
work.  (Like making the code maintainable.  The former developers left it in
an AWFUL state.)

You may want to just implement Telnet yourself and use MacTCP.  The actual
barebones Telnet protocol is rather simple.  However, if you want the user
to directly acess the Telnet session, you should probably let NCSA Telnet 
handle it.  The source for Telnet is freely available on ftp.ncsa.uiuc.edu.  If
you come up with some nice enhancements... mail us the code!

>  Telnet's sessions can be saved
>  to a file while the session is open, but that solves only one part
>  of the problem.  If I've understood it correctly, it is not possible
>  to use System 7's publish/subscribe-features or high-level events,
>  if either of the programs (in this case Telnet) doesn't accept them.
>  Can I post keypresses or other low-level events to Telnet's event queue?

I'm not sure how you would tweak Telnet's event queue.  As far as the HL events,
if you have any ideas as to how you think we could best implement them, drop
me a line and I'll forward your ideas to the other developers as well.

>  Are there any other communication programs, PD or commercial, similar
>  to NCSA Telnet, but with more System 7-aware properties, like the ones
>  I mentioned above?

I think there is a program called "5PM" by Advanced Software Concepts (?).
When I took a quick look at it, it seemed to have scripting abilities.  As far
as HLE goes, I dunno.  DISCLAIMER:  I've never used the program for more than
five minutes (and a demo at that too...).  The demo should be available at one
of the Mac archive sites.

Good luck,


-- 
Jim Browne                                          | jbrowne@ncsa.uiuc.edu  |
NCSA/STG System Administrator                       | stgadmin@ncsa.uiuc.edu |
System Administration: Where the fun never ends...  | (217) 244-7798         |
--"It's really weird... kind of like how Telnet is programmed." - Q. Koziol --
Technical Details
Message-ID: <jbrowne.727596453@zaphod>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!zaphod!jbrowne
References: <HEILEI.13.727536600@nippi.hut.fi>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.mac,comp.sys.mac.comm,comp.sys.mac.apps,comp.sys.mac.misc,comp.sys.mac.programmer,comp.sys.mac.system
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!zaphod!jbrowne
From: jbrowne@zaphod.ncsa.uiuc.edu (Jim Browne)
Subject: Re: Communicating with Telnet
References: <HEILEI.13.727536600@nippi.hut.fi>
Message-ID: <jbrowne.727596453@zaphod>
Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
Organization: University of Illinois at Urbana
Date: Thu, 21 Jan 1993 06:07:33 GMT
Keywords: Telnet
Lines: 54