Exchange/RJE Manual

SETMODE Procedure
Exchange/RJE System Procedure Calls
5–36 104698 Tandem Computers Incorporated
SETMODE Function 45
This function returns the current state of the line server in a return code. To get the
return code, you must call FILEINFO after calling SETMODE. The number returned
by FILEINFO in the
error
parameter indicates the state of the line server. The
following codes can be returned:
0 DISCONNECTED.
Your program must call SETMODE function 41 to establish a connection with the
data communications line before you can use the line server to send or receive.
1 CONNECTING.
A connection is being established. For example, the ACU may be dialing the
phone number or the modem may be waiting for the remote system to answer the
telephone.
2 CONNECTED, BUT IDLE.
The connection has been established but no operation is in progress. The data
communications line is in the control state; neither the line server nor the remote
system control the line.
3 SENDING.
A send operation is in progress. The data communications line is in the message
state, and the line server controls the line.
4 RECEIVING.
A receive operation is in progress. The data communications line is in the message
state, and the remote system controls the line.
SETMODE function 45 does not use either
param1
or
param2
; you can omit both
when using SETMODE function 45.