The /descriptor qualifier allows you to specify symbol names that store socket descriptors. This option is necessary only, if more than one socket is opened. The usage is illustrated in the second example.
Example 1:
SPECTRA>
open/socket/host=hast56/port=3504
SPECTRA>
inquire/socket s1 "whatever"char(10)
SPECTRA>
close/socket
A socket is connected to a terminal server port. The
port has been configured before.
The inquire command sends as a prompt string.
This saves an additional say command.
Example 2:
SPECTRA>
open/socket/des=d1/host=hast56/port=3504
SPECTRA>
open/socket/des=d2/host=hast56/port=3505
SPECTRA>
inquire/socket/des=d1 s1 "fetch?"char(13)
SPECTRA>
inquire/socket/des=d2 s2 "fetch?"char(13)
SPECTRA>
close/socket/des=d1
SPECTRA>
close/socket/des=d2
SPECTRA>
d1 =
SPECTRA>
d2 =
Two sockets are opened simultaneously. Their descriptors are stored in the symbols d1 and d2.
>
op
>
op
The qualifier /lines=nl (alias /row
s=nl selects the vertical
size of the window, nl in [14,40], default 14.
The qualifier /columns=nc selects the horizontal
size of the window, nc in [10,80], default 40.
The qualifier /title=string sets the title of the
message window.