|
这是什么错误?
1000人加压的时候。报错。。。。。
=========================================================================
/*********************************************************************
* Created by Mercury Interactive Windows Sockets Recorder
*
* Created on: Thu Jul 25 09:14:58
*********************************************************************/
#include "lrs.h"
Action()
{
int rc;
//建立到服务端的连接
rc = lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=52.0.98.188:8810", LrsLastArg);
if (rc==0)
lr_output_message("Socket was successfully created ");
else
lr_output_message("An error occurred while creating the socket, Error Code: %d", rc);
lr_start_transaction("发送事物");
lrs_send("socket0", "buf0", LrsLastArg); //往"socket0"发送"buf0"中的数据
lr_think_time(10);
lrs_receive("socket0", "buf1", LrsLastArg);//将"socke0"中返回的数据存放到"buf1"中
//关闭连接
lrs_close_socket("socket0");
lr_end_transaction("发送事物", LR_AUTO);
return 0;
} |
|