Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!ucsd!sdcsvax!ucsdhub!hp-sdd!ncr-sd!ncrlnk!ncrcce!cavanaug From: cavanaug@ncrcce.StPaul.NCR.COM (John David Cavanaugh) Newsgroups: comp.protocols.tcp-ip Subject: Telnet Commands in 3270 Data Stream Message-ID: <668@ncrcce.StPaul.NCR.COM> Date: 22 Apr 88 20:16:52 GMT Reply-To: John.Cavanaugh@StPaul.NCR.COM Organization: NCR Comten, Inc. Lines: 24 Keywords: Telnet, 3270, tn3270 References: I wonder if anyone can help me with a protocol question. Suppose you have a Telnet connection that has been put into 3270 mode either by the 3270 Regime option or a la tn3270 (Terminal Type, Binary, and End of Record options). When you get a 3270 data stream, you look for IAC EOR to mark the end of it. The question is: What do you do when you find some other Telnet command (e.g. IAC AO) before you find the EOR? I can imagine four choices: 1. Ignore the command (doesn't seem like a good idea). 2. Handle the command immediately (the problem with this is that a lot of the Telnet commands don't have much meaning in 3270 mode). 3. Save the command and do it after you find the EOR (doesn't seem right). 4. Throw away the whole data stream and send an error message back to the user (which hoplessly messes up some poor data entry clerk's session). My understanding is that Telnet commands "shouldn't" appear in the middle of the data stream. Is this correct? Does any implementation of tn3270 or the 3270 Regime option put commands there? Thanks in advance for your help. Reply to: John Cavanaugh John.Cavanaugh@StPaul.NCR.COM NCR Comten, Inc. 2700 Snelling Ave. N St. Paul, MN 55113 (612) 638-2822 The opinions expressed ...