background image
<< Correlating Statements | you save the parameter >>
<< Correlating Statements | you save the parameter >>

Working with Correlated Scripts

Creating Vuser Scripts
Chapter 12, page 224
Windows Sockets Vuser Scripts Developing Windows Sockets Vuser Scripts
In
Working with Correlated Scripts
To correlate statements within your script, you save the run-time value using
lrs_save_param or lrs_save_param_ex. Both of the functions save buffer data to
a parameter, however lrs_save_param_ex allows you to specify a user buffer and
an encoding method.
The lrs_save_param function saves data from a buffer to a parameter. This
function has the following parameters:
s_desc
A descriptor identifying a connecting socket. (for example
socket6
)
buf_desc
A descriptor identifying a buffer. (for example
buf16
)
param_name
The name of a parameter to hold the buffer value.
offset
The offset of the data in the buffer to be saved to the
parameter. For example, to begin with the tenth byte of
data, specify 10.
length
The length of the data (in bytes) to save to the parameter.