User`s guide
4: Application Interface
DC 900-1516D 79
4.3.3.3 TERMINATE Command
The TERMINATE command closes all sessions that use a particular read node number.
The following values must be placed in the ICP header of the
ATTACH command:
Command field =
DLI_ICP_CMD_TERM
Status field = hex 4000 (this tells the ICP to swap bytes for VMS systems)
Params[0] = read node number
If there are one or more sessions using a single read node number, the
TERMINATE
command forces the protocol software to do implied DETACH commands to each open
session. The ICP sends a
TERMINATE response to the supplied read node.
4.3.4 ICP Discarded Packets
When the protocol software on the ICP receives a packet that has an invalid protocol
session ID, it writes the packet back through node 1. For this reason, you may want to
have a separate program which reads packets from node 1 and displays the contents.
4.4 Node Auto-Assignment Mode for Read Requests
The driver supports the node auto-assignment mode for read requests on DLI session
interfaces. The driver automatically assigns the node number of the read request for
each device assigned by the
SYS$ASSIGN function. The application doesn’t have to set
the node numbers in the read and write node number (P4) of the
IO$_READxBLK
function.
The driver mode must be changed to use node auto-assignment. This is done by setting
the flag of
IO$_STARTMPROC function.
The application must also issue the
IO$_STARTDATA function to assign the node num-
ber for the device assigned by the
SYS$ASSGN function.