background image
<< Developing Windows Sockets Vuser Scripts | Getting Started with Windows Sockets Vuser Scripts >>
<< Developing Windows Sockets Vuser Scripts | Getting Started with Windows Sockets Vuser Scripts >>

About Recording Windows Sockets Vuser Scripts

Creating Vuser Scripts
Chapter 12, page 210
Windows Sockets Vuser Scripts · Developing Windows Sockets Vuser Scripts
In
About Recording Windows Sockets Vuser Scripts
The Windows Sockets protocol is ideal for analyzing the low level code of an
application. For example, to check your network, you can use a WinSock Vuser to
see the actual data sent and received by the buffers. In addition, using the low level
code, you can record and replay applications that are not supported by any of the
other Vuser types.
When you record an application which uses the Windows Sockets protocol, VuGen
generates LRS functions that describe the recorded actions. Each function begins
with an lrs prefix. The LRS functions relate to the sockets, data buffers, and the
Windows Sockets environment. Using VuGen, you record your application's API
calls to the Winsock.dll or Wsock32.dll. For example, you could create a script by
recording the actions of a
telnet
application.
In the following example, lrs_send sends data to a specified socket:
You can view and edit the recorded script from VuGen's main window. The
Windows Sockets API calls that were recorded during the session are displayed in
the window, allowing you to track your network activities.
lrs_send("socket22", "buf44", LrsLastArg);