### connection Indication

The host connection has changed state.

Attribute | Always present? | Purpose
--- | --- | ---
state | yes | New connection state
host | no | Host name, if connected
cause | no | Source of connection

Connection states are listed here.

State | Meaning
--- | ---
not-connected | No connection
reconnecting | Delay before automatic reconnection
resolving | Resoving host name to address
tcp-pending | TCP connection pending
tls-pending | TLS negotiation in progress
proxy-pending | Proxy negotiation in progress
telnet-pending | TELNET option negotiation in progress
connected-nvt | TN3270 NVT mode, line at a time
connected-nvt-charmode | TN3270 NVT mode, character at a time
connected-3270 | TN3270 3270 mode
connected-unbound | TN3270E unbound mode
connected-e-nvt | TN3270E NVT mode
connected-e-sscp | TN3270E SSCP-LU mode
connected-tn3270e | TN3270E 3270 mode

Connection sources are listed here.

Cause | Meaning
--- | ---
macro | Macro invocation
script | Action from script
command | x3270> prompt
keymap | Action from keymap
ui | Generated from user interface

Example:

    <connection state="connected-tn3270e" host="foo.bar.com" cause="ui"/>

b3270: Protocol - Operations - Indications