|
2#
楼主 |
发表于 2009-4-1 13:51:10
|
只看该作者
脚本如下:
/*********************************************************************
* Created by Mercury Interactive Windows Sockets Recorder
*
* Created on: Tue Mar 11 12:55:57
*********************************************************************/
#include "lrs.h"
vuser_init()
{
lrs_startup(257);
lrs_create_socket("socket0", "TCP", "RemoteHost=<My_ip>:9988", LrsLastArg);
lrs_create_socket("socket1", "TCP", "RemoteHost=<My_ip>:9988", LrsLastArg);
lrs_create_socket("socket2", "TCP", "RemoteHost=<My_ip>:9988", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_send("socket1", "buf1", LrsLastArg);
lrs_send("socket2", "buf2", LrsLastArg);
lrs_receive("socket0", "buf3", LrsLastArg);
lrs_receive("socket1", "buf4", LrsLastArg);
lrs_receive("socket2", "buf5", LrsLastArg);
return 0;
} |
|