ENFORM User's Guide
Writing ENFORM Servers
ENFORM Servers
058058 Tandem Computers Incorporated 7–5
Table 7-1. ENFORM Server Session
Message Transfer
Server Condition
Not Created
Created
R
eceives startup message
.
D
ormant
W
aits for an OPEN.
User
P
rocess
C
I
NEWPROCESS
R
UN
R
NFORM
S
erver
Call
Startup
Server Session Begins
QP
OPEN
ENFORM
S
erver
Opened
S
checs for message on
$
RECEIVE.
Server Application Code Begins
QP
INITIATE-INPUT-REQUEST
ENFORM
S
erver
Initializing
Q
P identifies a server.
S
erver reads request and
r
eplies.
INITIATE-INPUT-REPLY
RECORD-INPUT-REPLY
QP
RECORD-INPUT-REQUEST
ENFORM
S
erver
Active
Q
P request a record.
S
erver returns a record.
T
hese messages can be
r
epeated many times.
TERMINATE-INPUT-REPLY
QP
TERMINATE-INPUT-REQUEST
ENFORM
S
erver
Terminating
Q
P has no more requests.
S
erver returns to opened
c
ondition and can receive
n
ext INITIATE-INPUT-REQUES
T
Server Application Code Ends
QP
CLOSE
ENFORM
S
erver
Dormant
R
eturns to dormant
c
ondition.
W
aits for an OPEN message.
Each of the messages in Table 7-1 is explained in the following section.