iTP Active Transaction Pages (iTP ATP) Programmer's Guide

ATP Objects, Properties, and Methods
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide522292-002
4-35
atp.buffer Object
Properties
data_length
This property is the number of bytes to be sent with the next send() method call,
or the number of bytes received in a reply buffer. In either case, data_length is
the length of relevant data stored in the application-message structure. The
data_length property is automatically adjusted by the setData() and
setBinary() methods (which put data into application-message structures) and
reflects the offset, from the beginning of the structure, of the last byte placed in the
buffer, even if fields earlier in the structure are empty.
The range of this property is 1 to 31,000 bytes.
reply
The reply property of a buffer is set by the send() method. For successful
sends, the reply property is an automatically created buffer object, which you use
to access and process the application reply data. The length of this value is the
length of the reply from the server.
string_type
This property has the value provided in the constructor.
error (read-only)
The error property is set by the send() method and is the Pathsend error
number. A value of 0 signifies successful communication with an application server.
error_detail (read-only)
If the error property is non-zero, error_detail is the associated file-system
error number (if any).
pathsend_error_text (read-only)
If the error property is non-zero, pathsend_error_text is text describing
the Pathsend error.
pathsend_timeout
This property contains the timeout, in hundredths of a second, used by the send()
method. The range is the same as for a serverclass_send_ call in the NonStop
TS/MP programming environment; see the NonStop TS/MP manual set for more
information. The default value is 60 seconds.