tptpinit((TPINIT *)tpinitbuf)函数调用总是返回-1 用simpapp中的client程序测试正常,用windows下的程序连接时异常,请问如何定位?
进程如下:
bea 4214 1 0 19:57 pts/1 00:00:00 BBL -C dom=simpapp -g 30002 -i 0 -u commsoft -U /home/bea/simpapp/ULOG -m 0 -A
bea 4215 1 0 19:57 pts/1 00:00:00 simpserv -C dom=simpapp -g 1 -i 1 -u commsoft -U /home/bea/simpapp/ULOG -m 0 -A
bea 4216 1 0 19:57 pts/1 00:00:00 WSL -C dom=simpapp -g 1 -i 10 -u commsoft -U /home/bea/simpapp/ULOG -m 0 -A -- -n //192.168.0.254:17100
envinfo = "WSNADDR=//192.168.0.254:17100";
ret = tuxputenv((char*)envinfo);
tpinitbuf->flags = TPMULTICONTEXTS;
ret = tpinit((TPINIT *)tpinitbuf);
if (ret == -1)
{
log.log("初始tuxedo失败!\n");----每次都在这错了
return ret;
}
程序代码运行在windows xp上。