NetIPC 3000/XL Programmer's Reference Manual (5958-8600)

Table Of Contents
212 AppendixD
Migration From PTOP to NetIPC and RPM
Exchanging Data
Exchanging Data: In the Master Program
To convert the PTOP intrinsic listed below, perform the following steps.
lgth := PREAD (
dsnum
,target,tcount[,itag]
If the slave requires a master function, send the PREAD request
function (=2) on the virtual circuit to the slave.
If the slave requires the requested data length, send
tcount
on the
virtual circuit.
If a tag is specified, send the master tag on the virtual circuit.
If the master needs to know the actual data length sent from the
slave, receive the actual data length from the virtual circuit.
If the slave may call either ACCEPT or REJECT, receive a one byte
accept or reject indication on the virtual circuit from the slave.
Otherwise assume the slave accepted the request.
If the slave accepted the request, receive the target data from the
slave, using either a predetermined length or the actual data length
received in Step 4.
If a tag is specified, receive the slave tag from the virtual circuit.
To convert the PTOP intrinsic listed below, perform the following steps: