|
6#
楼主 |
发表于 2010-8-12 15:19:19
|
只看该作者
首先谢谢回帖,脚本如下:
Action()
{
lr_rendezvous("jihe10");
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=192.168.10.252:5788", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_close_socket("socket0");
lrs_create_socket("socket1", "TCP", "LocalHost=0", "RemoteHost=192.168.10.252:5788", LrsLastArg);
lrs_send("socket1", "buf1", LrsLastArg);
lr_start_transaction("buf2");
lrs_receive("socket1", "buf2", LrsLastArg);
lr_end_transaction("buf2", LR_AUTO);
lr_start_transaction("buf3");
lrs_send("socket1", "buf3", LrsLastArg);
lr_end_transaction("buf3", LR_AUTO);
lr_start_transaction("buf4");
lrs_receive("socket1", "buf4", LrsLastArg);
lr_end_transaction("buf4", LR_AUTO);
lrs_close_socket("socket1");
return 0;
}
buf3是10M的数据发送,看日志这个有丢失,但是没有报错。 |
|