|
我在录制一个即时通讯软件发送接收消息的脚本,回放时抛出错误:Action.c(28): Error : socket0 - Software caused connection abort. Error code : 10053.
录制的脚本如下:
#include "lrs.h"
Action()
{
lrs_set_recv_timeout(120,0);
lrs_create_socket("socket0", "TCP", "RemoteHost=210.51.173.146:5432", 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_disable_socket("socket0", DISABLE_SEND);
lrs_close_socket("socket0");
lrs_create_socket("socket1", "TCP", "LocalHost=7777", "Backlog=15", LrsLastArg);
lrs_close_socket("socket1");
lrs_create_socket("socket2", "TCP", "LocalHost=1024", "Backlog=15", LrsLastArg);
lrs_create_socket("socket3", "TCP", "LocalHost=7777", "Backlog=15", LrsLastArg);
lrs_create_socket("socket4", "TCP", "LocalHost=7778", "Backlog=15", LrsLastArg);
lrs_close_socket("socket4");
lrs_create_socket("socket5", "TCP", "LocalHost=7778", "Backlog=15", LrsLastArg);
lrs_create_socket("socket6", "TCP", "LocalHost=5060", "Backlog=15", LrsLastArg);
lrs_close_socket("socket6");
lrs_create_socket("socket7", "TCP", "LocalHost=5060", "Backlog=15", LrsLastArg);
lrs_create_socket("socket8", "TCP", "RemoteHost=210.51.173.146:5070", LrsLastArg);
lrs_send("socket8", "buf15", LrsLastArg);
lrs_receive("socket8", "buf16", LrsLastArg);
lrs_send("socket8", "buf17", LrsLastArg);
lrs_receive("socket8", "buf18", LrsLastArg);
lrs_create_socket("socket9", "TCP", "RemoteHost=210.51.173.146:5432", LrsLastArg);
lrs_send("socket9", "buf19", LrsLastArg);
lrs_receive("socket9", "buf20", LrsLastArg);
lrs_send("socket9", "buf21", LrsLastArg);
lrs_receive("socket9", "buf22", LrsLastArg);
lrs_send("socket9", "buf23", LrsLastArg);
lrs_receive("socket9", "buf24", LrsLastArg);
lrs_send("socket9", "buf25", LrsLastArg);
lrs_disable_socket("socket9", DISABLE_SEND);
lrs_close_socket("socket9");
lrs_send("socket8", "buf26", LrsLastArg);
lrs_receive("socket8", "buf27", LrsLastArg);
lrs_send("socket8", "buf28", LrsLastArg);
lrs_receive("socket8", "buf29", LrsLastArg);
lrs_send("socket8", "buf30", LrsLastArg);
lrs_receive("socket8", "buf31", LrsLastArg);
lrs_send("socket8", "buf32", LrsLastArg);
lrs_receive("socket8", "buf33", LrsLastArg);
lrs_send("socket8", "buf34", LrsLastArg);
lrs_receive("socket8", "buf35", LrsLastArg);
lrs_send("socket8", "buf36", LrsLastArg);
lrs_receive("socket8", "buf37", LrsLastArg);
lrs_send("socket8", "buf38", LrsLastArg);
lrs_receive("socket8", "buf39", LrsLastArg);
lrs_send("socket8", "buf40", LrsLastArg);
lrs_receive("socket8", "buf41", LrsLastArg);
lrs_send("socket8", "buf42", LrsLastArg);
lrs_receive("socket8", "buf43", LrsLastArg);
lrs_send("socket8", "buf44", LrsLastArg);
lrs_receive("socket8", "buf45", LrsLastArg);
lrs_send("socket8", "buf46", LrsLastArg);
lrs_receive("socket8", "buf47", LrsLastArg);
lrs_send("socket8", "buf48", LrsLastArg);
lrs_receive("socket8", "buf49", LrsLastArg);
lrs_send("socket8", "buf50", LrsLastArg);
lrs_receive("socket8", "buf51", LrsLastArg);
lrs_send("socket8", "buf52", LrsLastArg);
lrs_receive("socket8", "buf53", LrsLastArg);
lrs_send("socket8", "buf54", LrsLastArg);
lrs_receive("socket8", "buf55", LrsLastArg);
lrs_close_socket("socket8");
lrs_close_socket("socket3");
lrs_close_socket("socket5");
lrs_close_socket("socket2");
lrs_close_socket("socket7");
return 0;
} |
|