Using NS3000/iX Network Services (36920-90008)

150 Chapter 7
Remote Process Management
INITOPT
INITOPT
Initializes the opt parameter so that entries may be added.
Syntax
INITOPT (opt,eventualentries[,result])
Parameters
opt (output) Record or byte array, by reference. The opt
parameter which is to be initialized. Refer to “Common
Parameters” for more information on the structure of
this parameter.
eventualentries
(input) 16-bit integer, by value. The number of option entries
that are to be placed in the opt parameter.
result (output) 16-bit integer, by reference. The error code
returned; zero if no error.
Description
The INITOPT intrinsic initializes the length and number-of-entries
fields (that is, the first 4 bytes) of the opt parameter. This must be done
before options are added to the parameter by means of the ADDOPT
intrinsic.
Condition codes returned by this intrinsic are:
CCE — Succeeded.
CCL — Failed because of a user error.
CCG — Not returned by this intrinsic.
This intrinsic may be called in split stack mode.