51Testing软件测试论坛

标题: lrs_send参数问题 [打印本页]

作者: 153994730    时间: 2009-12-12 18:56
标题: lrs_send参数问题
HI

谁能告诉我, 为啥我的LR教本会报这个错?Specified buffer buf doesn't exist. Error code : 9011.
我试了好几个BUF都不行,从buf0 --- buf9
都不行

下边是相关教本:
char msgSend[100];
sprintf(msgSend,"111111111111111111111");
   rc=lrs_create_socket("socket1", "TCP", "RemoteHost=127.0.0.1:6000", LrsLastArg);

   if (rc==0)
    {

       lr_output_message("Socket 1 was successfully created! ");
        lrs_set_send_buffer("socket1",(char *)msgSend,sizeof(msgSend));
        lrs_send("socket1","buf",LrsLastArg);
      
    }

   else

       lr_output_message("An error occurred while creating the socket, Error Code: %d", rc);
作者: 153994730    时间: 2009-12-13 11:36
怎么都没人回啊?

lrs_send函数第2参该怎么设啊?

有谁能详述下它的原理?

唉, 好失望啊,难道真没懂的人?




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2