background image
<< Viewing APPC Data | Checks the number of valid buffers >>
<< Viewing APPC Data | Checks the number of valid buffers >>

Using APPC Data Buffers

APPC Vuser Scripts Developing APPC Vuser Scripts
Creating Vuser Scripts
Chapter 13, page 243
Using APPC Data Buffers
Several LRA functions, such as lra_receive and lra_send, handle the actual data
that is transferred between servers and clients. The data that is received or
transmitted is stored in data buffers, which can be very large. In order to simplify
the appearance of the script, the actual data is stored in external files--not in the
C file. When a data transfer occurs, the data is copied from the external file into a
temporary buffer.
In the following example, an lra_receive function was generated during a Vuser
session:
In this example, lra_receive handled data that was received over the
conversational connection,
Conv33339768
. The data was stored in two buffers,
buffer8
and
buffer9
. The corresponding section of the
appc.dt
file shows the buffers
and their contents.
lra_receive("Conv33339768", "type=11", "buffer8, buffer9");
buffer8
"\x00\x0A\x12\xA0\x00\x00\x04\x00\x00\x0C"
buffer9
"\x00\x0A\x12\xA0\x00\x00\x04\x00\x00\x0B"