Home > Class Reference > ENSLIB namespace > %Net.TelnetStream

%Net.TelnetStream

class %Net.TelnetStream extends %IO.MetaCharacterStream, %IO.IParts.SocketIO

This class emulates the handshaking behavior of Windows NT Telnet.exe

Parameters

parameter DEFAULTPORT = 23;
parameter DEFAWSHEIGHT = 45;
parameter DEFAWSWIDTH = 105;
parameter DEFTERMTYPES = ANSI; VT-100; IBM-3278-2;
parameter OpDo = 253;
parameter OpDont = 254;
parameter OpENDSCR = 239;
parameter OpIAC = 255;
parameter OpNOP = 241;
parameter OpSB = 250;
parameter OpSE = 240;
parameter OpWill = 251;
parameter OpWont = 252;
parameter OptBINX = 0;
parameter OptECHO = 1;
parameter OptENDREC = 25;
parameter OptENV = 39;
parameter OptENVVAR = 36;
parameter OptLINEMODE = 34;
parameter OptNAWS = 31;
parameter OptSGA = 3;
parameter OptSTATUS = 5;
parameter OptTERMSPEED = 32;
parameter OptTERMTYPE = 24;
parameter OptTIMING = 6;
parameter OptTOGGLEFLOW = 33;
parameter OptXDISPLAY = 35;

Properties

property AWSHeight as %Integer [ InitialExpression = ..#DEFAWSHEIGHT ];
Property methods: AWSHeightDisplayToLogical(), AWSHeightGet(), AWSHeightIsValid(), AWSHeightLogicalToDisplay(), AWSHeightNormalize(), AWSHeightSet()
property AWSWidth as %Integer [ InitialExpression = ..#DEFAWSWIDTH ];
Property methods: AWSWidthDisplayToLogical(), AWSWidthGet(), AWSWidthIsValid(), AWSWidthLogicalToDisplay(), AWSWidthNormalize(), AWSWidthSet()
property Curr3270Header as %String (TRUNCATE = 1) [ InitialExpression = "xxxxx" ];
Current Header block for 3270E data
Property methods: Curr3270HeaderDisplayToLogical(), Curr3270HeaderGet(), Curr3270HeaderIsValid(), Curr3270HeaderLogicalToDisplay(), Curr3270HeaderLogicalToOdbc(), Curr3270HeaderNormalize(), Curr3270HeaderSet()
property NoReacknowledgements as %Boolean [ InitialExpression = 0 ];
If this is set, don't re-acknowledge options we have already acknowledged once
Property methods: NoReacknowledgementsDisplayToLogical(), NoReacknowledgementsGet(), NoReacknowledgementsIsValid(), NoReacknowledgementsLogicalToDisplay(), NoReacknowledgementsNormalize(), NoReacknowledgementsSet()
property ResponseID as %Integer;
integer for response count in 3270E header response mode
Property methods: ResponseIDDisplayToLogical(), ResponseIDGet(), ResponseIDIsValid(), ResponseIDLogicalToDisplay(), ResponseIDNormalize(), ResponseIDSet()
property TermTypes as %String (TRUNCATE = 1) [ InitialExpression = ..#DEFTERMTYPES ];
List of terminal types to claim to support, semicolon separated
Property methods: TermTypesDisplayToLogical(), TermTypesGet(), TermTypesIsValid(), TermTypesLogicalToDisplay(), TermTypesLogicalToOdbc(), TermTypesNormalize(), TermTypesSet()
property TranslationTable as %String (TRUNCATE = 1);
Name of translation table to use for importing and exporting character text
Property methods: TranslationTableDisplayToLogical(), TranslationTableGet(), TranslationTableIsValid(), TranslationTableLogicalToDisplay(), TranslationTableLogicalToOdbc(), TranslationTableNormalize(), TranslationTableSet()

Methods

method %OnNew(pBaseStream As %IO.I.Stream = "%IO.Socket") as %Status
Inherited description: This callback method is invoked by the %New() method to provide notification that a new instance of an object is being created.

If this method returns an error then the object will not be created.

It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:

Method %OnNew(dob as %Date = "", name as %Name = "") as %Status If instead of returning a %Status code this returns an oref and this oref is a subclass of the current class then this oref will be the one returned to the