Example: lrs_exclude_socket

In the following example, the lrs_exclude_socket function excludes all operations on socket1. The script performs all operations on the other sockets in the script.

lrs_exclude_socket("socket1");
lrs_create_socket("socket0", "UDP", "LocalHost=0", "RemoteHost=localhost:1738", LrsLastArg);
/* The following section is excluded during replay */
lrs_create_socket("socket1", "UDP", LrsLastArg);
lrs_send("socket1", "buf0", "TargetSocket=mustang.abc.co.il:53", LrsLastArg);
lrs_receive("socket1", "buf1", LrsLastArg);
lrs_close_socket("socket1");
/* The script resumes execution from here */
lrs_create_socket("socket2", "TCP", "LocalHost=0", "RemoteHost=testpc1.abc.co.il:80", LrsLastArg);
lrs_send("socket0", "buf2", LrsLastArg);
lrs_receive("socket0", "buf3", LrsLastArg);
lrs_send("socket2", "buf4", LrsLastArg);
lrs_receive("socket2", "buf5", LrsLastArg);
lrs_send("socket2", "buf6", LrsLastArg);

...