参数化端口时碰到socket_type parameter is invalid的错误,请高手指教
char str;sprintf(str,"%d", atoi(lr_eval_string("{port}")));
lrs_create_socket(str,"socket30", "TCP", "LocalHost=9200", "Backlog=1", LrsLastArg);
我的脚本运行到creat socket的时候会报socket_type parameter is invalid的错误,请高手指教 lrs_create_socket(str,"socket30", "TCP", "LocalHost=这里是不是少了主机名或IP?9200", "Backlog=1", LrsLastArg); localhost就是指本机吧,我换成IP试试 这是脚本
pcTest3=lrs_get_received_buffer ("strSock1", 0,5, "ascii");
--------------------------------------------------------------
日志
Action.c(11): lrs_get_received_buffer(strSock1, buf_p, size_p)
Action.c(11): Error : strSock1 parameter is invalid. Error code : 9005.
为什么会报这个错误呀?
页:
[1]