|
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); |
|