|
录制win socket协议的教本:
#include "lrs.h"
Action()
{
lr_think_time(11);
lrs_create_socket("socket0", "TCP", "RemoteHost=192.168.0.133:8443", 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_close_socket("socket0");
lrs_create_socket("socket1", "TCP", "LocalHost=23", "Backlog=50", LrsLastArg);
lrs_create_socket("socket2", "TCP", "LocalHost=80", "Backlog=50", LrsLastArg);
return 0;
}
回放时出现错误:
Action.c(22): Error : socket0 - Connection reset by peer. Error code : 10054.
怎么回事?请教 |
|