|
2#
楼主 |
发表于 2006-3-9 16:15:55
|
只看该作者
详细描述一下
#include "lrs.h"
Action()
{
lr_start_transaction("连接");
lrs_startup(257);
lrs_create_socket("socket0", "TCP", "RemoteHost=10.224.18.163:11110", LrsLastArg);
lr_end_transaction("连接", LR_AUTO);
lr_start_transaction("缴费");
// lr_think_time(22);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lr_end_transaction("缴费",LR_AUTO);
// lr_think_time(37);
lr_start_transaction("回退");
lrs_send("socket0", "buf2", LrsLastArg);
lrs_receive("socket0", "buf3", LrsLastArg);
lr_end_transaction("回退", LR_AUTO);
// lr_think_time(12);
lr_start_transaction("断开连接");
lrs_close_socket("socket0");
lrs_cleanup();
lr_end_transaction("断开连接", LR_AUTO);
return 0;
} |
|