|
本帖最后由 caiw0418 于 2010-11-19 16:21 编辑
回复 13# yinxiaodan
#include "lrs.h"
vuser_init()
{
lrs_startup(257);
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=122.**.**:80", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_disable_socket("socket0", DISABLE_SEND);
lrs_close_socket("socket0");
lrs_create_socket("socket1", "TCP", "RemoteHost=b***8", LrsLastArg);
lrs_send("socket1", "buf2", LrsLastArg);
lrs_receive("socket1", "buf3", LrsLastArg);
lrs_send("socket1", "buf4", LrsLastArg);
lrs_receive("socket1", "buf5", LrsLastArg);
lrs_send("socket1", "buf6", LrsLastArg);
lrs_receive("socket1", "buf7", LrsLastArg);
lrs_send("socket1", "buf8", LrsLastArg);
lrs_receive("socket1", "buf9", LrsLastArg);
lrs_send("socket1", "buf10", LrsLastArg);
lrs_receive("socket1", "buf11", LrsLastArg);
lrs_send("socket1", "buf12", LrsLastArg);
lrs_receive("socket1", "buf13", LrsLastArg);
lrs_send("socket1", "buf14", LrsLastArg);
lrs_receive("socket1", "buf15", LrsLastArg);
lrs_close_socket("socket1");
return 0;
}
这个是vuser_init的文件 |
|