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