TCPSetParameters
Used before calling NewSession to set or override connection parameters.
Parameters
HostAddrStr
Host address string used when establishing a connection to the host system.
ModelTypeVal
Optional: Model type value used when setting the default number of rows and columns for the device to emulate:
2 - 24x80
3 - 32x80
4 - 43x80
5 - 27x132
PortVal
Optional: Port number used when establishing a connection to the host system.
Returns
0 on Success, or a non-zero error code. See Error codes for a complete listing of error code descriptions.
Example
set bzhao = CreateObject("BZWhll.WhllObj")
bzhao.TCPSetParameters "host.address", 5, 23
SessName = bzhao.NewSession( 1, "default.zmd" )
bzhao.Connect SessName
bzhao.SendKey "logon user<Enter>"