background image
<< telnet session | relevant buffer >>
<< telnet session | relevant buffer >>

Determine the socket

Windows Sockets Vuser Scripts · Developing Windows Sockets Vuser Scripts
Creating Vuser Scripts
Chapter 12, page 227
To correlate the statements:
1
Determine the socket, buffer, offset, and length of the data. Search the data file for
the relevant information. In the example below, the Receive buffer,
buf79
was
received after a
ps
command. The data was received via socket1. The offset of
the PID data is 60 (the sixtieth character), and its length is 5. For information on
how to determine the offset, see
Determining Character Offsets for
Parameterization
on page 229.
During recording, the user noted the PID of 23961 and then performed a kill
operation on that process. This operation is shown in the Send buffer,
buf80.
recv buf79 151
"\r"
"\x0"
"\r\n"
" PID TTY TIME CMD\r\n"
" 23959 pts/11 0:00 clock\r\n"
" 23961 pts/11 0:00 clock\r\n"
" 23960 pts/11 0:00 vi\r\n"
" 23926 pts/11 0:03 tcsh\r\n"
"frodo:/u/jay>"
send buf80
"\x16"
"kill 23961"