|
2#
楼主 |
发表于 2009-7-28 10:16:27
|
只看该作者
以下是录制了两遍的脚本比较:
脚本一:
Action
{
lrs_save_param("Socket0", "buf12", "param1",42, 2);\\通过关联获取13
lrs_save_param("Socket0", "buf12", "param2",45, 3);\\通过关联获取144
lrs_create_socket("socket1", "TCP", "LocalHost=0", "RemoteHost=VVS-SERVER:3472", LrsLastArg);
}
data.ws
{
recv buf12 51
"227 Entering Passive Mode (10,188,180,221,13,144)\r\n"
}
脚本二:
Action
{
lrs_save_param("Socket0", "buf12", "param1",42, 2);\\通过关联获取13
lrs_save_param("Socket0", "buf12", "param2",45, 3);\\通过关联获取229
lrs_create_socket("socket1", "TCP", "LocalHost=0", "RemoteHost=VVS-SERVER:3557", LrsLastArg);
}
data.ws
{
recv buf12 51
"227 Entering Passive Mode (10,188,180,221,13,229)\r\n"
}
上面已经实现了关联的问题,接下来如何解决把关联到的数据转换为端口呢??? |
|