|
问大家一个问题,我用windows sockets协议录了一个telnet的脚本,多个并发执行的时候老报错,是不是需要做下参数化或者关联?如果是的话应该怎么做呢?
脚本如下:
Action()
{
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=192.168.0.100:443", LrsLastArg);
lrs_receive("socket0", "buf0", LrsLastArg);
lrs_send("socket0", "buf1", LrsLastArg);
lrs_receive("socket0", "buf2", LrsLastArg);
lrs_send("socket0", "buf3", LrsLastArg);
lrs_receive("socket0", "buf4", LrsLastArg);
lrs_send("socket0", "buf5", LrsLastArg);
lrs_receive("socket0", "buf6", LrsLastArg);
lrs_send("socket0", "buf7", LrsLastArg);
lrs_receive("socket0", "buf8", LrsLastArg);
lrs_send("socket0", "buf9", LrsLastArg);
lrs_receive("socket0", "buf10", LrsLastArg);
lrs_send("socket0", "buf11", LrsLastArg);
lrs_receive("socket0", "buf12", LrsLastArg);
lrs_send("socket0", "buf13", LrsLastArg);
lrs_receive("socket0", "buf14", LrsLastArg);
lrs_send("socket0", "buf15", LrsLastArg);
lrs_receive("socket0", "buf16", LrsLastArg);
lrs_send("socket0", "buf17", LrsLastArg);
lrs_receive("socket0", "buf18", LrsLastArg);
lrs_send("socket0", "buf19", LrsLastArg);
lrs_receive("socket0", "buf20", LrsLastArg);
lrs_send("socket0", "buf21", LrsLastArg);
lrs_receive("socket0", "buf22", LrsLastArg);
lrs_send("socket0", "buf23", LrsLastArg);
lrs_receive("socket0", "buf24", LrsLastArg);
lrs_send("socket0", "buf25", LrsLastArg);
lrs_receive("socket0", "buf26", LrsLastArg);
lrs_send("socket0", "buf27", LrsLastArg);
lrs_receive("socket0", "buf28", LrsLastArg);
lrs_send("socket0", "buf29", LrsLastArg);
lrs_receive("socket0", "buf30", LrsLastArg);
lrs_send("socket0", "buf31", LrsLastArg);
lrs_receive("socket0", "buf32", LrsLastArg);
lrs_send("socket0", "buf33", LrsLastArg);
lrs_receive("socket0", "buf34", LrsLastArg);
lrs_send("socket0", "buf35", LrsLastArg);
lrs_receive("socket0", "buf36", LrsLastArg);
lrs_send("socket0", "buf37", LrsLastArg);
lrs_receive("socket0", "buf38", LrsLastArg);
lrs_close_socket("socket0");
return 0;
}
错误信息为:Action.c(26): Error : socket0 - Software caused connection abort. Error code : 10053. |
|