|
回复 10# 的帖子
Action()
{
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=192.168.1.1:554", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_send("socket0", "buf2", LrsLastArg);
lrs_receive("socket0", "buf3", LrsLastArg);
lrs_create_socket("socket1", "UDP", "LocalHost=15947", LrsLastArg);
lrs_send("socket1", "buf4", "TargetSocket=228.67.43.91:15947", LrsLastArg);
lrs_receive("socket1", "buf5", LrsLastArg);
lrs_close_socket("socket1");
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_create_socket("socket2", "UDP", "LocalHost=3053", LrsLastArg);
lrs_create_socket("socket3", "UDP", "LocalHost=0", LrsLastArg);
lrs_send("socket2", "buf12", "TargetSocket=192.168.1.1:6971", LrsLastArg);
lrs_create_socket("socket4", "UDP", "LocalHost=3055", LrsLastArg);
lrs_receive("socket3", "buf13", LrsLastArg);
lrs_send("socket4", "buf14", "TargetSocket=192.168.1.1:6971", LrsLastArg);
lrs_create_socket("socket5", "UDP", "LocalHost=0", LrsLastArg);
lrs_receive("socket5", "buf15", LrsLastArg);
lrs_receive("socket4", "buf16", LrsLastArg);
lrs_receive("socket2", "buf17", LrsLastArg);
lrs_receive("socket3", "buf18", LrsLastArg);
lrs_receive("socket5", "buf19", LrsLastArg);
lrs_receive("socket3", "buf20", LrsLastArg);
lrs_receive("socket5", "buf21", LrsLastArg);
——————————————————
删除socket1的UDP行后提示对应的socket1套接字不存在。
不删除的时候总是提示错误,socket1-地址已在使用。错误代码10048 |
|