6100 ADCCP Programming Manual
Application Tasks
Writing Applications that Use ADCCP
069225 Tandem Computers Incorporated 4–15
WRITEREAD Procedure
A call to the WRITEREAD procedure initiates two separate I/O operations: a write
followed by a read. The read operation is not queued until the WRITE operation has
completed. Both operations use the same application program buffer.
CALL WRITEREAD (
filenum
!i
,
buffer
!i,o
,
write-count
!i
,
read-count
!i
,[
count-read
] !o
,[
tag
] ) !i
filenum
input
INT:value
is the file number returned by the OPEN call that opened the line and identifies
where the write/read is to occur.
buffer
input, output
INT:ref:*
is the name of the integer array within the application program from which the
ADCCP protocol module retrieves outgoing data (that is, the application writes
data to
buffer
) and into which it places the subsequent incoming data (that is,
the application reads data from
buffer
). The data structure of
buffer
should be
the structure required by the request the application is making or the response it is
receiving.
write-count
input
INT:value
specifies the number of bytes that the ADCCP protocol module retrieves from the
application buffer (that is, from the array specified by
buffer
.)
—>