Exchange/RJE Manual

Step-by-Step Instructions
Using the Exchange/RJE Programmatic Interface
4–18 104698 Tandem Computers Incorporated
Disconnecting After Receiving
If your program has been receiving data from the remote system, the remote system
initiates the disconnect by sending an EOT (end of transmission) possibly followed by
a DLE EOT (disconnect message). In either case (EOT or EOT followed by DLE EOT),
your program should simply close the line server (see “Step 8: Close the Line Server”).
Your program does not need to take any action to disconnect from the data
communications line.
Disconnecting After Sending
If your program has been sending data to the remote system, your program initiates
the disconnect by calling the CONTROL procedure with the operation parameter
equal to 13, which sends an EOT to the remote system.
If the data communications line is a switched line, your program can call CONTROL a
second time with the operation parameter equal to 19, which sends a DLE EOT to the
remote system and causes both the remote system and the local system to disconnect
from the switched line (that is, they hang up the telephone). You can also use DLE
EOT on a nonswitched line. On a nonswitched line it causes no physical
disconnection, but it does place both the local system and remote system in the
logically disconnected state.
Step 10: Close the Line
Server
After your program has completed its task, it should close the line server. To do this,
you must call the CLOSE procedure.
The line server will not be stopped when your program closes it unless your program
made an earlier call to the SETMODE procedure with the function 44 parameter set to
1. SETMODE function 44 specifies whether or or not the line server is stopped when
your program closes it.