8. Data Transmission
Data is transferred from container to container by execution of assignment and FOR operations. The outermost containers involved in transfers can be files or ports. If both are files, then the transfer is internal to the Datacomputer. If either is a port, then an address in the external world is needed to accomplish the data transmission.
Such an address is supplied through a CONNECT-request, which associates a container (having a function of PORT) with an external address:
CONNECT <ident> TO <address> ;
Here <address> is either a specifications of host and socket number, or a TENEX file designator (for CCA's TENEX) enclosed in single quotes. The host and socket form is:
<socket> AT <host>
where <socket> is a decimal number, and <host> is either a decimal number or a standard host name (since standard host names don't exist right now, it has to be the TENEX 'standard' name for the host. Contact the author for the latest list.) If <host> is omitted, it is taken to be the host from which the Datalanguage is being transmitted.
The address associated with a port can be changed by issuing another CONNECT-request.
A DISCONNECT-request simply breaks an existing port/address association without establishing a new one. (A CLOSE-request that references an open port executes a DISCONNECT.) The syntax of DISCONNECT is:
DISCONNECT <ident> ;
A port is disconnected when: (a) no successful CONNECT-request has ever been issued for it, or (b) a DISCONNECT for the port has been executed since the last successful CONNECT.
When a disconnected port is referenced in an assignment, it is connected by default either to:
(a) the connection used for the transmission of Datalanguage to the
Datacomputer, or
(b) the connection used for the transmission of Datacomputer
diagnostics to the user
The choice between (a) and (b), of course, depends on whether the reference is for input or output. These connections are established by the network user's ICP to the Datacomputer at the beginning of the session.
Note that CONNECT and DISCONNECT do not open files or network connections. They simply make address associations within the Datacomputer. The files and connections are opened before each request and closed after each request.