|
其中buf3需要做关联
action{
lrs_create_socket("socket0", "TCP", "RemoteHost=192.168.1.36:7000", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_close_socket("socket0");
lrs_create_socket("socket1", "TCP", "RemoteHost=192.168.1.36:9980", LrsLastArg);
lrs_send("socket1", "buf1", LrsLastArg);
lrs_close_socket("socket1");
lrs_create_socket("socket2", "TCP", "RemoteHost=192.168.1.36:9980", LrsLastArg);
lrs_send("socket2", "buf2", LrsLastArg);
lrs_receive("socket2", "buf3", LrsLastArg);
……
return 0;
}
data.ws
recv buf3 44
"\x02\x02"
"("
"\x00\x01"
"…"
"\x80\x02\x00\x00\x00"
"<Q"
"\x12\x00\x02\x00\x00\x00\x00\x00"
"\t"
"\x00"
"QQ2949119?÷"
"\x90"
"?"
"\x80\x19"
"t"
"\x1a"
"??3O"
红色部分表示每次返回有变化的部分
我关联后的内容如下:
……
lrs_receive("socket2", "buf3", LrsLastArg);
lrs_save_param_ex("socket2","received","buf3",0,44,NULL,"Param_User");//所有内容作保存到一个参数Param_User中
data.ws中修改内容如下:
recv buf3 44
"Param_User"
回放结果:一直停在
Action.c(32): lrs_receive(socket2, buf3)
试了lrs_save_searched_string()也不行 |
|