socket脚本Unable to translate buffer to socket错误如何解决啊,请高手指教!
char bf={0};//设置为 \xfe\xff\xfe\xff 就会报错Unable to translate buffer to socket,设置为\x01\x01\x01\x01就正常,怎么回事啊 memcpy(bf,"\xfe\xff\xfe\xff",4);
lrs_create_socket("socket0", "TCP", "RemoteHost=10.42.118.200:9091",LrsLastArg);
lrs_set_send_buffer("socket0", bf, 4);
lrs_send("socket0", "buf0", LrsLastArg); 使用lrs_length_send函数替代lrs_send函数。 高手啊!解决了,谢谢!
页:
[1]