abyss911 发表于 2009-2-17 01:05:04

socket脚本发送失败原因?

Action()
{
    unsigned char Buffer;
    Buffer=0x31;
    Buffer=0x32;
    Buffer=0x33;
    Buffer=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==0x80时就可以发送成功,请各位帮忙看看什么原因,谢谢.

archonwang 发表于 2009-2-17 14:57:38

看下这个。http://bbs.51testing.com/viewthread.php?tid=98102
页: [1]
查看完整版本: socket脚本发送失败原因?