home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / 610 next >
Encoding:
Internet Message Format  |  1993-01-21  |  3.2 KB

  1. Xref: sparky comp.sys.mac:610 comp.sys.mac.comm:13230 comp.sys.mac.apps:20262 comp.sys.mac.misc:22076 comp.sys.mac.programmer:21869 comp.sys.mac.system:16470
  2. Newsgroups: comp.sys.mac,comp.sys.mac.comm,comp.sys.mac.apps,comp.sys.mac.misc,comp.sys.mac.programmer,comp.sys.mac.system
  3. Path: sparky!uunet!spool.mu.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!zaphod!jbrowne
  4. From: jbrowne@zaphod.ncsa.uiuc.edu (Jim Browne)
  5. Subject: Re: Communicating with Telnet
  6. References: <HEILEI.13.727536600@nippi.hut.fi>
  7. Message-ID: <jbrowne.727596453@zaphod>
  8. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  9. Organization: University of Illinois at Urbana
  10. Date: Thu, 21 Jan 1993 06:07:33 GMT
  11. Keywords: Telnet
  12. Lines: 54
  13.  
  14. HEILEI@nippi.hut.fi (Heikki Leinonen) writes:
  15.  
  16.  
  17. >  How to communicate with NCSA Telnet ?
  18.  
  19. >  Here's the problem:  I have NCSA Telnet 2.5 running in a
  20. >  Quadra 900/System 7.0.1, with MacTCP/Internet-access to a
  21. >  Unix-machine (Sun Sparcstation IPX).  The program I'm writing
  22. >  with Think C 5.0 should be able to give commands to Telnet and
  23. >  control the process running in the Sparcstation.  It should also
  24. >  be able to read the text from Telnet's session window.
  25.  
  26. >  So what's the best/easiest/most efficient way to do this ?  Is
  27. >  there a way to do this at all ?
  28.  
  29. Not currently.  We've been putting AppleEvents off lately in favor of some other
  30. work.  (Like making the code maintainable.  The former developers left it in
  31. an AWFUL state.)
  32.  
  33. You may want to just implement Telnet yourself and use MacTCP.  The actual
  34. barebones Telnet protocol is rather simple.  However, if you want the user
  35. to directly acess the Telnet session, you should probably let NCSA Telnet 
  36. handle it.  The source for Telnet is freely available on ftp.ncsa.uiuc.edu.  If
  37. you come up with some nice enhancements... mail us the code!
  38.  
  39. >  Telnet's sessions can be saved
  40. >  to a file while the session is open, but that solves only one part
  41. >  of the problem.  If I've understood it correctly, it is not possible
  42. >  to use System 7's publish/subscribe-features or high-level events,
  43. >  if either of the programs (in this case Telnet) doesn't accept them.
  44. >  Can I post keypresses or other low-level events to Telnet's event queue?
  45.  
  46. I'm not sure how you would tweak Telnet's event queue.  As far as the HL events,
  47. if you have any ideas as to how you think we could best implement them, drop
  48. me a line and I'll forward your ideas to the other developers as well.
  49.  
  50. >  Are there any other communication programs, PD or commercial, similar
  51. >  to NCSA Telnet, but with more System 7-aware properties, like the ones
  52. >  I mentioned above?
  53.  
  54. I think there is a program called "5PM" by Advanced Software Concepts (?).
  55. When I took a quick look at it, it seemed to have scripting abilities.  As far
  56. as HLE goes, I dunno.  DISCLAIMER:  I've never used the program for more than
  57. five minutes (and a demo at that too...).  The demo should be available at one
  58. of the Mac archive sites.
  59.  
  60. Good luck,
  61.  
  62.  
  63. -- 
  64. Jim Browne                                          | jbrowne@ncsa.uiuc.edu  |
  65. NCSA/STG System Administrator                       | stgadmin@ncsa.uiuc.edu |
  66. System Administration: Where the fun never ends...  | (217) 244-7798         |
  67. --"It's really weird... kind of like how Telnet is programmed." - Q. Koziol --
  68.