|
你可以把代码贴一部分上来
#include "lrs.h"
Action()
{
lr_think_time(22);
lrs_create_socket("socket2", "TCP", "LocalHost=0", "RemoteHost=amssyec.com:8000", LrsLastArg);
lrs_send("socket2", "buf0", LrsLastArg);
lrs_receive("socket2", "buf1", LrsLastArg);
lrs_send("socket2", "buf2", LrsLastArg);
lrs_receive("socket2", "buf3", LrsLastArg);
lrs_send("socket2", "buf4", LrsLastArg);
lrs_receive("socket2", "buf5", LrsLastArg);
lrs_send("socket2", "buf6", LrsLastArg);
lrs_receive("socket2", "buf7", LrsLastArg);
lrs_send("socket2", "buf8", LrsLastArg);
lrs_receive("socket2", "buf9", LrsLastArg);
lrs_send("socket2", "buf10", LrsLastArg);
lrs_create_socket("socket3", "TCP", "LocalHost=0", "RemoteHost=amssyec.com:8000", LrsLastArg);
lrs_send("socket3", "buf11", LrsLastArg);
lrs_receive("socket3", "buf12", LrsLastArg);
lrs_send("socket3", "buf13", LrsLastArg);
lrs_receive("socket2", "buf14", LrsLastArg);
lrs_send("socket2", "buf15", LrsLastArg);
lrs_receive("socket3", "buf16", LrsLastArg);
lrs_receive("socket2", "buf17", LrsLastArg);
lrs_receive("socket3", "buf18", LrsLastArg);
lrs_receive("socket2", "buf19", LrsLastArg);
lrs_receive("socket3", "buf20", LrsLastArg);
lrs_receive("socket2", "buf21", LrsLastArg);
lrs_send("socket3", "buf22", LrsLastArg);
lrs_receive("socket2", "buf23", LrsLastArg);
lrs_send("socket3", "buf24", LrsLastArg);
lrs_receive("socket2", "buf25", LrsLastArg);
lrs_receive("socket3", "buf26", LrsLastArg);
lr_think_time(10);
lrs_send("socket3", "buf27", LrsLastArg);
lrs_receive("socket3", "buf28", LrsLastArg);
lrs_send("socket3", "buf29", LrsLastArg);
lrs_receive("socket3", "buf30", LrsLastArg);
lrs_send("socket3", "buf31", LrsLastArg);
lrs_send("socket2", "buf32", LrsLastArg);
lrs_close_socket("socket2");
lrs_receive("socket3", "buf33", LrsLastArg);
lr_think_time(10);
lrs_send("socket3", "buf34", LrsLastArg);
lrs_close_socket("socket3");
lrs_create_socket("socket4", "TCP", "LocalHost=0", "RemoteHost=amssyec.com:8000", LrsLastArg);
lrs_send("socket4", "buf35", LrsLastArg);
lrs_receive("socket4", "buf36", LrsLastArg);
lrs_send("socket4", "buf37", LrsLastArg);
lr_think_time(54);
lrs_receive("socket4", "buf38", LrsLastArg);
lrs_send("socket4", "buf39", LrsLastArg);
lrs_receive("socket4", "buf40", LrsLastArg);
lrs_send("socket4", "buf41", LrsLastArg);
lr_think_time(23);
lrs_receive("socket4", "buf42", LrsLastArg);
return 0;
} |
|