Flynet Viewer .NET Programmer's Reference

sessionOptions Property (string)

sessionOptions Property (string)

Previous topic Next topic  

sessionOptions Property (string)

Previous topic Next topic  

 

Use this property to set the session connection options at runtime.

 

HostConnection.sessionOptions

 

Arguments

 

HostConnection

 Required. HostConnection object.

 

Remarks

 

READWRITE.

 

For example, to set the ScreenCheck properties which identifies the initial host screen, do the following:

 

oConn.sessionOptions = "ConnectTestRow:23;ConnectTestColumn:2;ConnectTestText:ENTER;"

 

The following table shows the session options available:

 

 

Setting

Example Values

Comment

Protocol

TN3270,

TN5250,

TNVT

 

TerminalType

IBM-3278-2 (24 x 80)

IBM-3278-2E (24 x 80)

IBM-3278-3 (32 x 80)

IBM-3278-3E (32 x 80)

IBM-3278-4 (43 x 80)

IBM-3278-4E (43 x 80)

IBM-3278-5 (27 x 132)

IBM-3278-5E (27 x 132)

IBM-5251-11 (24 x 80 mono)

IBM-3179-2 (24 x 80 color)

IBM-3196-A1 (24 x 80 mono)

IBM-5292-1 (24 x 80 color)

IBM-5291-1 (24 x 80 mono)

IBM-3180-2 (27 x 132 mono)

IBM-3477-FG (27 x 132 mono)

IBM-3477-FC (27 x 132 color)

DEC-VT100, DEC-VT220, DEC-VT320

Type depends on the protocol selected.

Address

IP (e.g. 192.168.0.1)

or hostname (e.g. localhost)

 

CodePageTable

CP037.dat

Code page to use for this session

ReadySilence

100

 

TNLevel

0, 1, 2

0=TN3270

1=TN3270E (Basic)

2=TN3270E (Full)

ConnectTestColumn

1

 

ConnectTestRow

24

 

ConnectTestText

login

 

ConnectSilentCount

20

 

ConnectTimeoutCount

300

 

hostName

Insure

hostname to connect to, or use the sessionHost property

luName

SYS0002

For iSeries Device Name (DEVNAME) or  TN3270E LU Name, use this setting, which can include wildcards for sessionID--see description in the Administration Guide--

NewSession

Yes, No

For pooled sessions, set to yes to ensure an unused session is connected on next Connect().

pool

base

For pooled sessions, name of pool to connect to (or use sessionPool property)

port

23

Telnet port to connect to, or use the sessionPort property

ScreenRowsNorm

24

 

ScreenColsNorm

80

 

ScreenRowsAlt

27

 

ScreenColsAlt

132

 

Host sends zero-length buffers

0

 

IgnoreHostDrop

No

 

TransitionTimeout

20000

 

termRowCutoff

0

 

 

The following example illustrates session connection options being set and the connection method being executed:

 

 HostConnection oConn = new HostConnection();

 oConn.sessionHost = "127.0.0.1";

 oConn.sessionPort = 23;

 oConn.sessionOptions = "ConnectTestRow:23;ConnectTestColumn:2;ConnectTestText:ENTER;";

 oConn.sessionType = "TN3270";

 oConn.connect("standard");

 

Requirements

 

Flynet Viewer

 

See Also

 

Connect | sessionHost | sessionPort | sessionType

 

Applies To: HostConnection object

 


© 2016 Inventu Corporation, Flynet LTD