home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / protocol / tcpip / 3778 < prev    next >
Encoding:
Internet Message Format  |  1992-07-21  |  2.1 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: comp.protocols.tcp-ip
  4. Subject: Re: Help?
  5. Date: 22 Jul 1992 00:43:23 GMT
  6. Organization: Thinking Machines Corporation, Cambridge MA, USA
  7. Lines: 35
  8. Distribution: comp
  9. Message-ID: <14iavbINNr3c@early-bird.think.com>
  10. References: <1992Jul21.112712.12158@kei.is.s.u-tokyo.ac.jp>
  11. NNTP-Posting-Host: telecaster.think.com
  12.  
  13. In article <1992Jul21.112712.12158@kei.is.s.u-tokyo.ac.jp> jeff@is.s.u-tokyo.ac.jp writes:
  14. >So now that I have a connection?  (it didn't complain), I fork a
  15. >reader and writer task.  The writer repsonds to my key presses and
  16. >claims to have written successfully.  The reader ALWAYS immediately
  17. >reports 3 characters whose values when printed at integers are -1, -3
  18. >and 24.  That is all I ever hear from the reader.  I would have
  19. >expected that the getty on the receiving end would say something.  Are
  20. >these chars some sort of handshake that I have to respond to?  What is
  21. >the response?
  22.  
  23. That's an IAC sequence.  These are sent by TELNET implementations to
  24. implement control operations in the protocol and negotiate options.  That
  25. specific sequence is IAC DO TERMINAL-TYPE, i.e. a request for the client to
  26. send the user's terminal type.  If you don't want to send the terminal
  27. type, you should respond IAC WONT TERMINAL-TYPE.
  28.  
  29. See the specification of the TELNET protocol in RFC 854.  You should
  30. probably use unsigned characters, so that the values will match the
  31. character codes used in the specification (e.g. it describes that sequence
  32. as 255 253 24).
  33.  
  34. >All I want to do is pass, *completely* unprocessed characters from
  35. >standard in to the socket stream and from the socket stream to stdout.
  36. >I would really appreciate any help or code :-) you can give me.
  37.  
  38. If you're going to talk to a TELNET server, you have to talk its language.
  39. And that requires recognizing and acting on control operations in the
  40. protocol.  TELNET isn't just a simple pass-through protocol, it's a virtual
  41. terminal protocol with great flexibility.
  42.  
  43. -- 
  44. Barry Margolin
  45. System Manager, Thinking Machines Corp.
  46.  
  47. barmar@think.com          {uunet,harvard}!think!barmar
  48.