|
我现在要测试一个类似与 MSN的通信系统的性能,数据库采用的是MySQL ,连接方式为MySql的动态链接库,首先协议应该怎么选择啊,我选择了winSocket协议,也能录制,但我想加入参数,因为至少要模拟10个用户并发操作嘛,提供不用的用户名和密码,我录的登陆脚本如下:
#include "lrs.h"
vuser_init()
{
lrs_startup(257);
lr_think_time(32);
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=202.101.165.141:5222", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_create_socket("socket1", "UDP", "LocalHost=5224", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_send("socket1", "buf2", "TargetSocket=202.101.165.141:5225", LrsLastArg);
lrs_send("socket0", "buf3", LrsLastArg);
lrs_receive("socket1", "buf4", LrsLastArg);
lrs_receive("socket0", "buf5", LrsLastArg);
lrs_send("socket0", "buf6", LrsLastArg);
lrs_receive("socket0", "buf7", LrsLastArg);
lrs_send("socket0", "buf8", LrsLastArg);
lrs_receive("socket0", "buf9", LrsLastArg);
lrs_send("socket0", "buf10", LrsLastArg);
lrs_receive("socket0", "buf11", LrsLastArg);
return 0;
}
我应该在哪里填加参数啊,实在摸索不错来,网高手给予帮助,谢谢啦!sdlkfj7 |
|