|
2#
楼主 |
发表于 2005-7-6 21:50:38
|
只看该作者
附件发不上去,我把我的脚本放上来了,大家看下啊
#include "lrs.h"
Action()
{
lrs_create_socket("socket0", "TCP", "RemoteHost=www.gkjk.net:80", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lr_think_time(6);
lrs_create_socket("socket1", "TCP", "RemoteHost=www.gkjk.net:80", LrsLastArg);
lrs_send("socket1", "buf2", LrsLastArg);
lrs_receive("socket1", "buf3", LrsLastArg);
lrs_create_socket("socket2", "TCP", "RemoteHost=www.gkjk.net:80", LrsLastArg);
lrs_send("socket2", "buf4", LrsLastArg);
lrs_receive("socket2", "buf5", LrsLastArg);
lrs_close_socket("socket1");
lrs_close_socket("socket0");
lrs_close_socket("socket2");
return 0;
} |
|