调用了这条代码:anychat.TransBufferEx()出错
我调用了这条代码:anychat.TransBufferEx(0, sb.toString().getBytes(), sb.toString().length(), 0,0,1);结果出现了这么个结果
您好,请将客户端的日志文件(BRAnyChatCore.log)和服务器端的日志文件(AnyChatCoreServer.log)传上来看一下,谢谢。
另外您的开发环境是(Windows、Android、Web、iOS、Linux)?开发语言是? 服务器日志:
---------------------Init Service--------------------------
Current File Version,Build time:2013-04-03 10:03:18
Start Server At Demo Mode!
Start TCP Server Successed(port=8906)!
Start UDP Server Successed(port=8907)!
AnyChat IPC Filter Plus Init, Build Time:Mar 19 2013 15:48:02
Load SDK Filter Plus:IPCFilterPlus.dll Success, ver:SDK Filter Plus (IPC), for Windows V4.6
其他的没了
我是用java语言开发的
用的window 7系统 客户端的Log呢? 没看见客户端的Log?位置在哪?
找到了,这就是客户端的log
---------------------------BRAnyChatCore ActiveCallLog---------------------------
Load SDK Success, dwFuncMode:0x22fa,V4.7(Build Time:Apr3 2013 10:02:38)
Load BRMiscUtil.dll success!(V4.7 Build Time:Mar 19 2013 15:34:35)
Load BRMediaUtil.dll success!(V4.7 Build Time:Mar 19 2013 15:37:49)
Load BRMediaShow.dll success!(V4.7 Build Time:Mar 19 2013 15:36:31)
Load BRMediaCore.dll success!(V4.7 Build Time:Mar 27 2013 22:30:01)
Invoke BRAC_Connect(127.0.0.1,8906)=0
Invoke LoginServer(username=login:15555215554:demo)
CheckClientSocketLink Connect(ip=127.0.0.1,port=8906)
Server version: V4.6(Build Time:2013-04-03 10:03:18)
Message OnConnect(bSuccess:1, errorcode=0)
Message OnLoginSystem(userid=2,errorcode=0,username=login:15555215554:demo), msg deliver worked(0)
Warning: The UDP communication with the server abnormal!
这是我服务器端的配置
ServerID=1
TCPListenPort=8906
UDPServicePort=8907
SDKAuthPass=
DemoMode=1
ShowTrayIcon=1
RoutingPolicy=2
RoutingTTL=3
RoutingMTN=4
VideoWidth=320
VideoHeight=240
VideoFPS=15
VideoGOPSize=30
VideoBitrate=90000
VideoCodec=1
VideoQuality=3
VideoPreset=3
AudioSamplesPerSec=16000
AudioChannels=1
AudioBitsPerSample=16
AudioCodec=11
AudioBitrate=15850
CloseFrontLink=1
AutoAddRoom=1
AllowGuestLogin=1
SDKFilterPlus=IPCFilterPlus.dll
MaxUsersPerRoom=500
SlaveMode=0
MasterServerIP=127.0.0.1
MasterServerUDPPort=8907
没改多少,你看看是不是有什么地方配置错了
从客户端的LOG来看,客户端与服务器的UDP通信存在问题,将服务器部署到其他的计算机上试试看?
另外,开启内核的调试模式,将"OutputTransBuffer=1",然后在出现问题之后再把客户端的LOG发上来看看,参考:
http://www.anychat.cn/faq/index.php?action=artikel&cat=2&id=266&artlang=zh
那我先运行一下看看