background image
<< Configure the run-time settings | Buffer Functions >>
<< Configure the run-time settings | Buffer Functions >>

Using LRS Functions

Windows Sockets Vuser Scripts Developing Windows Sockets Vuser Scripts
Creating Vuser Scripts
Chapter 12, page 213
Using LRS Functions
The functions developed to emulate communication between a client and a server
by using the Windows Sockets protocol are called LRS Vuser functions. Each LRS
Vuser function has an lrs prefix. This section lists the LRS functions that VuGen
generates while recording a Windows Sockets session. You can also manually
program any of the functions into your script. For more information about the LRS
functions, refer to the
LoadRunner Online Function Reference
(available from
the VuGen Help menu).
Socket Functions
lrs_accept_connection
Accepts a connection on a listening socket.
lrs_close_socket
Closes an open socket.
lrs_create_socket
Initializes a socket.
lrs_disable_socket
Disables an operation on a socket.
lrs_get_socket_attrib
Gets a socket's attributes.
lrs_receive
Receives data from a datagram or stream socket.
lrs_receive_ex
Receives data of a specific length from a
datagram or stream socket.
lrs_send
Sends data on a datagram or to a stream socket.
lrs_set_socket_options
Sets a socket option.
Online
Function
Reference