Syntax
── ? ── CONNECT ─┬───────────────────────┬─ TO ──<host specification>──► └─ [ ──< protocol>── ] ─┘ ►─┬─────────────────────┬──────────────────────────────────────────────┤ └─ : ─┬─<MCS name>────┤ └─<port number>─┘
<host specification>
──┬─<host name>───┬────────────────────────────────────────────────────┤ ├─<IP address>──┤ └─<domain name>─┘
<protocol>
──────┬─ STAXFER ────────────────────────────┬───────────────────────┤ └─ TELNET ─┬───────────────────────────┤ └─┬─────┬─────┬─ SSL ───────┤ └─ , ─┘ ├─ TSL ───────┤ └─ SECURE ────┘
<MCS name>
──<file title>─────────────────────────────────────────────────────────┤
<port number>
──<number>─────────────────────────────────────────────────────────────┤
Explanation
The ?CONNECT command allows you to transfer control of a data comm station from the MCS of a local host to an MCS on a remote host. The ?CONNECT command is the control command version of the CONNECT command and has identical syntax, except for the added defined control character, a question mark (?), in the control command. The defined control character allows the command to be transmitted when the station is not logged on to the local CANDE.
If the usercode attribute NOSTATIONXFER is TRUE, you cannot use the CONNECT and ?CONNECT CANDE commands to transfer control to an MCS on a remote host.
The explanation of the ?CONNECT command is identical to CONNECT (refer to the CONNECT command in CANDE Commands) with the addition of the following information.
If a command is in progress when the ?CONNECT command is entered, the following message is displayed:
#STATION IS BUSY
If a remote file is open at the station, the following message is displayed:
#STATION IN USE
If the station is busy or in use, the command is discarded.
Examples
?connect to blue #END SESSION 0842 ET=20.9 PT=0.1 IO=0.0 #USER = UZER CHARGE = CHARGE2 10:12:55 11/07/16 DE1000:857 SYSTEM/STATION/TRANSFER; HOSTNAME = YELLOW INITIATING DIALOG WITH BLUE DIALOG INITIATED. INITIATING CONNECT. ?CONNECT [TELNET, SSL] TO SOMETCPHOST ?CONNECT [TELNET SECURE] TO SOMETCPHOST