home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / dcom / servers / 141 < prev    next >
Encoding:
Text File  |  1992-11-07  |  3.9 KB  |  108 lines

  1. Newsgroups: comp.dcom.servers
  2. Path: sparky!uunet!think.com!paperboy.osf.org!loverso
  3. From: loverso@coltsfoot.osf.org (John Robert LoVerso)
  4. Subject: Re: Seeking 8-bit clean connection from Annex to Sun
  5. Message-ID: <1992Nov6.160215.20096@osf.org>
  6. Sender: news@osf.org (USENET News System)
  7. Organization: OSF Research Institute, Cambridge MA
  8. References:  <1992Nov5.134934.16804@panix.com>
  9. Date: Fri, 6 Nov 1992 16:02:15 GMT
  10. Lines: 96
  11.  
  12. How exactly is telnet getting in the way?  By default, telnet does various
  13. translations on a data stream into and out of "network virtual terminal" to
  14. allow wildy different host architectures to intercommunicate.  Most
  15. of these can be elided.
  16.  
  17. The Annex CLI rlogin has always been 8-bit (it predates the -8 switch to BSD
  18. rlogin).  Assuming you were using XON/XOFF flow control, then this macro
  19. should work:
  20.  
  21.     # UUCP dialin macro via rlogin
  22.     alias "uucp dialin"
  23.         keyin   /uucp-r/  1-6@dialin-annex
  24.     }
  25.     <stty attn undef
  26.     <stty iflow none oflow none
  27.     <stty -break -lbreak
  28.     <rlogin uucp-host
  29.     }
  30.  
  31. I.e., clear the CLI attn character, XON/XOFF flow control state, and
  32. just use rlogin.
  33.  
  34. OOPS: that won't work under R6.2 and later, as the CLI attn character
  35. became a string.  Use
  36.     stty attn ""
  37.  
  38. (of course, if you use "" for any other stty character, you'll get the
  39. character to a single double quote!!  You can still use stty attn ^@, I guess)
  40.  
  41. If you are alrady using EIA flow control, then you needn't change it.
  42.  
  43. You might be able to use CLI telnet, but you have a few more things to
  44. set up:
  45.  
  46.     + Disable CLI telnet escape character.
  47.     + Select binary mode
  48.     + Possibly play with TELNET CRLF translation.
  49.  
  50. That latter depends upon whether the remote telnet daemon you are connecting
  51. to is "broken" or not.  That is, TELNET NVT dictates that bare CRs in the
  52. data stream be quoted as CR-NUL, but some older telnetd's don't do the
  53. right thing and send CR-LF.  Thankfully, there is now a port option that
  54. will help select this, but there is no easy way to force CLI telnet binary
  55. mode!
  56.  
  57. In the past, I've found the best way to run UUCP through an Annex is to
  58. avoid an rlogin/telnet into a host, which causes uucico to be run over
  59. a pty (lots of host overhead!).  Instead, the Annex can directly contact
  60. the BSD uucpd with this:
  61.  
  62.     # UUCP dialin macro via telnet
  63.     alias "uucp dialin"
  64.         keyin   /uucp-t/  1-6@dialin-annex
  65.         keyin   /uucp/    1-6@dialin-annex
  66.     {
  67.     <stty attn ""
  68.     <stty iflow none oflow none
  69.     <stty -break -lbreak
  70.     <stty tesc ^]
  71.     <telnet -r uucp-host uucp
  72.     <^]mode char remote
  73.     <^]tog crlf
  74.     <^]set esc U
  75.     }
  76.  
  77. Notice the rather gross way of setting appropriate telnet command options!
  78. I had hoped that this would have been fixed by Xylogics by now, but...
  79.  
  80. Anyway, I'm using "telnet -r" there.  This is a pseudo-telnet mode that
  81. still does some character mapping/echoing.  It is roughly equivalent to
  82. what happens in 4.3BSD telnet when you specify a TCP port other than
  83. "telnet".  In terms of the Annex, it avoid SOME overhead of the per-character
  84. processing dictated by the TELNET protocol, but not all.  The internal
  85. Annex CLI telnet implementation was quite ugly the last time I worked on
  86. it (R5.0 or so).
  87.  
  88. "telnet -t" is something Xylogics recently added that (apparently) does
  89. nothing more than open a raw TCP stream to the destination.  Hopefully,
  90. it avoids all the normal CLI telnet internals, since it doesn't really
  91. have any need for them.  It should take much less Annex CPU to pump
  92. high numbers of characters through.
  93.  
  94. [There is one botch I've be snagged by with "telnet -t" - it requires
  95. that you enter a TCP port number.  I don't have a problem with it
  96. wanting a port, but it apparently goes though some pain to make sure
  97. you cannot enter a symbolic name.  I.e.,
  98.     gizmo v1# telnet -t coltsfoot smtp
  99.     Port number required!
  100. SIGH!]
  101.  
  102. To get an 8-bit path under a "normal" telnet login session talking to
  103. a typical 4BSD telnetd,, it should be sufficient to remove the CLI
  104. attention character, "tog binary" at the telnet command prompt,
  105. and then unset the telnet escape character.
  106.  
  107. John
  108.