|
Action()
{
unsigned char Buffer[4];
Buffer[0]=0x31;
Buffer[1]=0x32;
Buffer[2]=0x33;
Buffer[3]=0x81;
lrs_create_socket("socket0", "TCP", "RemoteHost=188.188.188.234:30001", LrsLastArg);
lrs_set_send_buffer("socket0", (char *) Buffer,sizeof(Buffer));
lrs_send("socket0", "buf0", LrsLastArg);
// lrs_free_buffer((char *)Buffer);
// lrs_close_socket("socket0");
return 0;
}
lrs_set_send_buffer返回的是成功,担提示错误:
Action.c(16): Error : Unable to translate buffer to socket0. Error code : 9013.
当Buffer[3]==0x80时就可以发送成功,请各位帮忙看看什么原因,谢谢. |
|