ConnectionState query

The ConnectionState query returns information about the current state of the connection.

Return values
The ConnectionState query returns one of the following values:
 * not-connected
 * There is no active connection.


 * reconnecting
 * An automatic reconnect operation is pending.


 * tls-password-pending
 * The emulator is waiting for a TLS password to be entered.


 * resolving
 * A host name is being resolved by DNS.


 * tcp-pending
 * The TCP connection to the host or proxy server has not been accepted yet.


 * tls-pending
 * TLS protocol negotiation is in progress.


 * proxy-pending
 * Proxy negotiation is in progress.


 * telnet-pending
 * TELNET option negotiation is in progress.


 * connected-nvt
 * The connection is in NVT line mode.


 * connected-nvt-charmode
 * The connection is in NVT character-at-a-time mode.


 * connected-3270
 * The connection is in 3270 mode, using TN3270.


 * connected-unbound
 * TN3270E has been negotiated, but no particular TN3270E mode has been established.


 * connected-e-nvt
 * The connection is in NVT mode, using TN3270E.


 * connected-sscp
 * The connection is in TN3270E SSCP-LU mode.


 * connected-tn3270e
 * The connection is in NVT mode, using TN3270E.