READOPT

Obtains the option code and argument data associated with an opt parameter argument.

READOPT(opt,argnum,optioncode,datalength,data,error)

opt

Byte array (Pascal); Integer array

 

(FORTRAN), by reference. The opt parameter to be

 

read.

argnum

16-bit integer, by value in Pascal, by

 

reference in FORTRAN. The number of the argument to

 

be obtained. The first argument is number zero.

optioncode

16-bit integer, by reference. The option code

 

associated with the argument. These codes are described in

 

each NetIPC call opt parameter description.

datalength

16-bit integer, by reference. The length of the data

(input/output)

buffer into which the argument should be read. If the data

 

buffer is not large enough to accommodate the argument data,

 

an error will be returned. On output, this parameter contains

 

the length of the data actually read. (The length of the data

 

associated with a particular option code is provided in each

 

NetIPC call opt parameter description.)

data

Array, by reference. An array which will contain the

 

data read from the argument.

error

16-bit integer, by reference. The error code

 

returned; zero if no error.

Network Interprocess Communication 623