|
录制一个客户端程序时报错10054,网上搜了几天,大部分都说设置超时时间,可是我测试的是C/S,超时时间只有在B/S架构才有,求助大家帮忙。小弟谢了!
脚本如下:
/* -------------------------------------------------------------------------------
Script Title :
Script Description :
Recorder Version : 8859
------------------------------------------------------------------------------- */
vuser_init()
{
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=link.263em.com:5222", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_send("socket0", "buf2", LrsLastArg);
lrs_receive("socket0", "buf3", LrsLastArg);
lrs_send("socket0", "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);
lrs_send("socket0", "buf12", LrsLastArg);
lrs_receive("socket0", "buf13", LrsLastArg);
lrs_send("socket0", "buf14", LrsLastArg);
lrs_receive("socket0", "buf15", LrsLastArg);
lrs_send("socket0", "buf16", LrsLastArg);
lrs_receive("socket0", "buf17", LrsLastArg);
lrs_send("socket0", "buf18", LrsLastArg);
lrs_receive("socket0", "buf19", LrsLastArg);
lrs_send("socket0", "buf20", LrsLastArg);
lrs_receive("socket0", "buf21", LrsLastArg);
lrs_send("socket0", "buf22", LrsLastArg);
lrs_receive("socket0", "buf23", LrsLastArg);
lrs_send("socket0", "buf24", LrsLastArg);
lrs_receive("socket0", "buf25", LrsLastArg);
lrs_receive("socket0", "buf26", LrsLastArg);
lrs_send("socket0", "buf27", LrsLastArg);
lrs_receive("socket0", "buf28", LrsLastArg);
lrs_create_socket("socket1", "TCP", "LocalHost=5583", "Backlog=1", LrsLastArg);
lrs_create_socket("socket2", "TCP", "LocalHost=0", "RemoteHost=zhiyu-PC:5583", LrsLastArg);
lrs_accept_connection("socket1", "socket3");
lrs_create_socket("socket4", "TCP", "LocalHost=5584", "Backlog=1", LrsLastArg);
lrs_create_socket("socket5", "TCP", "LocalHost=0", "RemoteHost=zhiyu-PC:5584", LrsLastArg);
lrs_send("socket0", "buf29", LrsLastArg);
lrs_accept_connection("socket4", "socket6");
lrs_receive("socket0", "buf30", LrsLastArg);
lrs_receive("socket0", "buf31", LrsLastArg);
lrs_create_socket("socket7", "TCP", "LocalHost=0", "RemoteHost=sim.update.263em.com:80", LrsLastArg);
lrs_receive("socket0", "buf32", LrsLastArg);
lrs_send("socket7", "buf33", LrsLastArg);
lrs_receive("socket7", "buf34", LrsLastArg);
lrs_close_socket("socket7");
lrs_receive("socket0", "buf35", LrsLastArg);
lrs_send("socket2", "buf36", LrsLastArg);
lrs_receive("socket0", "buf37", LrsLastArg);
lrs_receive("socket3", "buf38", LrsLastArg);
lrs_receive("socket6", "buf39", LrsLastArg);
lrs_send("socket5", "buf40", LrsLastArg);
lrs_receive("socket3", "buf41", LrsLastArg);
lrs_send("socket2", "buf42", LrsLastArg);
lrs_send("socket5", "buf43", LrsLastArg);
lrs_receive("socket6", "buf44", LrsLastArg);
lrs_send("socket0", "buf45", LrsLastArg);
lr_think_time(8);
lrs_receive("socket0", "buf46", LrsLastArg);
return 0;
}
data.ws脚本如下:
recv buf7 59
"\x14\x03\x01\x00\x01\x01\x16\x03\x01\x00"
"0Cs"
"\x92"
"5"
"\xde\xff"
","
"\xad"
"6裿h坁"
"\xa8"
"9L讇忤"
"\x00\xee\x03"
"r祮"
"\xad\x11"
"槿仆D"
"\xa0"
"\n"
"-)槛C"
"\xd1" |
|