background image
<< Using Winsock Data Buffers | Understanding Data Files >>
<< Using Winsock Data Buffers | Understanding Data Files >>

Vuser session

Creating Vuser Scripts
Chapter 12, page 220
Windows Sockets Vuser Scripts · Developing Windows Sockets Vuser Scripts
In
In the following example, an lrs_receive function was recorded during a Vuser
session:
In this example, lrs_receive handled data that was received on
socket1
. The data
was stored in the fifth receive record(buf4)--note that the index number is zero-
based. The corresponding section of the
data.ws
file shows the buffer and its
contents.
lrs_receive("socket1", "buf4", LrsLastArg)
recv buf4 39
"\xff\xfb\x01\xff\xfb\x03\xff\xfd\x01"
"\r\n"
"\r\n"
"SunOS UNIX (sunny)\r\n"
"\r"
"\x0"
"\r\n"
"\r"
"\x0"