Telnet → REXX ZocDeviceControl Command for Telnet
ZocDeviceControl is a ZOC-REXX Command, which allows to perform functions that are specific to a communication method.
Available sub-commands for the ZocDeviceControl script command in relation to Telnet connections are:
| RESOLV <hostname or ip> | |
Returns hostname and ip for the requested host in the form
"<primary hostname>; <ip>" (e.g.
SAY ZocDeviceControl("RESOLV mail.emtec.com")
may return www2.emtec.com; 212.34.172.147).
| |
| CONNECTEDTOIP | |
Returns the IP address of the connected host, or N/A if none is known.
| |
| SEND TELNET_AYT|TELNET_BRK|TELNET_IP|TELNET_AO|TELNET_NOP | |
Sends one Telnet control command. TELNET_AYT is Are you there,
TELNET_BRK is Break, TELNET_IP is Interrupt Process,
TELNET_AO is Abort Output and TELNET_NOP is No Operation.
The result is ##OK## or ##ERROR##,
e.g. CALL ZocDeviceControl "SEND TELNET_AYT"
| |
| TCP_NODELAY ON|OFF | |
Turns the TCP_NODELAY socket option on or off (Nagle's algorithm). The result is ##OK## or ##ERROR##, e.g. CALL ZocDeviceControl "TCP_NODELAY ON" | |
← Back to Telnet