AnyChat技术支持论坛

标题: 求问:为什么调用连接的时候会出现返回码100的错误? [打印本页]

作者: 末世蓝风    时间: 2015-9-6 16:57
标题: 求问:为什么调用连接的时候会出现返回码100的错误?
如题,在我调用登陆方法之前,我要调用anyChatSDK.Connect(ip, port)方法。如果IP活着port不对的情况,会一直循环连接。我的问题是,在我调用这个方法的时候,有的时候一次酒能连接成功然后就可以继续调用登陆方法,但是这个有时候是不确定的,有时候一次,有时候两次,有时候甚至要十几次。请问这会是什么引起的呢?
作者: 陈文仲    时间: 2015-9-6 17:25
您好,返回100是指连接失败,可能原因1.ip或port输入错误;2.网络连接异常。可以把日志文件发上来看看。日志:BRAnyChatCore.log
作者: 末世蓝风    时间: 2015-9-6 17:39
陈文仲 发表于 2015-9-6 17:25
您好,返回100是指连接失败,可能原因1.ip或port输入错误;2.网络连接异常。可以把日志文件发上来看看。日 ...

1,如果错误的话,就算一直连接也不应该连上吧,2,网络异常,网络用的局域网
[2015-09-06 17:31:50(466)]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2015-09-06 17:31:50(467)]        Load libanychatcore.so success!(V5.2 Build Time:Jan 19 2015 07:04:03)
[2015-09-06 17:31:50(467)]        Android OS SDK Version:21, Support ARMv7:2, Support Neon:4
[2015-09-06 17:31:50(482)]        Load libmediautil_v7.so success!(V5.2 Build Time:Jan 19 2015 07:05:29)
[2015-09-06 17:31:50(490)]        Load libmediashow.so success!(V5.2 Build Time:Jan 19 2015 07:05:09)
[2015-09-06 17:31:50(497)]        Load libmediacore.so success!(V5.2 Build Time:Jan 19 2015 07:05:14)
[2015-09-06 17:31:50(498)]        PLK(HUAWEI
) hi3635  5.0.2
[2015-09-06 17:31:50(501)]        Invoke        BRAC_Connect(192.168.57.74,8906)=0
[2015-09-06 17:31:50(502)]        Invoke        LoginServer(username=wc1)
[2015-09-06 17:31:50(502)]        Invoke        EnterRoom(roomid=1000)
[2015-09-06 17:31:50(504)]        Invoke        BRAC_Connect(192.168.57.74,8906)=0
[2015-09-06 17:31:50(504)]        Invoke        LoginServer(username=wc1)
[2015-09-06 17:31:50(504)]        Invoke        EnterRoom(roomid=1000)
[2015-09-06 17:31:50(576)]        CheckClientSocketLink         Connect(ip=192.168.57.74,port=8906)
[2015-09-06 17:31:50(617)]        Server version: V5.3(Build Time:2015-07-23 20:08:54, Server OS:Windows)
[2015-09-06 17:31:50(659)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2015-09-06 17:31:50(714)]        Invoke        BRAC_Connect(192.168.57.74,8906)=0
[2015-09-06 17:31:50(714)]        Invoke        LoginServer(username=wc1)
[2015-09-06 17:31:50(714)]        Invoke        EnterRoom(roomid=1000)
[2015-09-06 17:31:51(036)]        Message        OnLoginSystem(userid=20153,errorcode=0,username=ía3¡1), msg deliver worked(0)
[2015-09-06 17:31:51(037)]        Server running time: 0 days, 2 hours, 32 minutes, license mode:0
[2015-09-06 17:31:51(043)]        Invoke        EnterRoom(roomid=1000)
[2015-09-06 17:31:51(047)]        Connection to streaming media server successfully!(udp delay:5ms)
[2015-09-06 17:31:51(149)]        Message        OnEnterRoom(roomid=1000,errorcode=0,siteindex=0)
[2015-09-06 17:31:51(150)]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2015-09-06 17:31:51(151)]        Message        OnReceiveOnlineUser(count=1,roomid=1000)
[2015-09-06 17:32:01(231)]        Message        OnEnterRoom(roomid=1000,errorcode=207,siteindex=-1)
[2015-09-06 17:35:14(007)]        Message        OnUserEnterRoom(userid=20152,nickname=3¬¼¶óû§,siteindex=1)
[2015-09-06 17:35:15(557)]        Message        OnP2PConnectState(userid=20152, state=1)
[2015-09-06 17:35:15(740)]        Message        OnP2PConnectState(userid=20152, state=3)
报错的部分好像没有,我给你一下log打印的吧
09-06 17:39:28.970    9792-9792/com.jsjty.jdc.app I/art﹕ Late-enabling -Xcheck:jni
09-06 17:39:29.370    9792-9792/com.jsjty.jdc.app I/View﹕ ssignParent(ViewParent parent) parent is: android.view.ViewRootImpl@2893b11
09-06 17:39:29.420    9792-9825/com.jsjty.jdc.app I/OpenGLRenderer﹕ Initialized EGL, version 1.4
09-06 17:39:29.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 2  11.0
09-06 17:39:29.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 45.0  70.0
09-06 17:39:29.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 7  11.0
09-06 17:39:29.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 75.0  10.0
09-06 17:39:29.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 30  15.0
09-06 17:39:29.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 106.0  10.0
09-06 17:39:30.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 2  9.0
09-06 17:39:30.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 45.0  70.0
09-06 17:39:30.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 7  12.0
09-06 17:39:30.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 75.0  10.0
09-06 17:39:30.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 30  15.0
09-06 17:39:30.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 106.0  10.0
09-06 17:39:31.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 1  13.0
09-06 17:39:31.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 57.0  69.0
09-06 17:39:31.420    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 2  9.0
09-06 17:39:31.420    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 45.0  70.0
09-06 17:39:31.420    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 7  11.0
09-06 17:39:31.420    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 75.0  10.0
09-06 17:39:31.420    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 30  15.0
09-06 17:39:31.420    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 106.0  10.0
09-06 17:39:31.560    9792-9792/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:31(570)        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
09-06 17:39:31.560    9792-9792/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:31(570)        Load libanychatcore.so success!(V5.2 Build Time:Jan 19 2015 07:04:03)
09-06 17:39:31.560    9792-9792/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:31(571)        Android OS SDK Version:21, Support ARMv7:2, Support Neon:4
09-06 17:39:31.580    9792-9792/com.jsjty.jdc.app W/linker﹕ libmediautil_v7.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
09-06 17:39:31.580    9792-9792/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:31(590)        Load libmediautil_v7.so success!(V5.2 Build Time:Jan 19 2015 07:05:29)
09-06 17:39:31.590    9792-9792/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:31(600)        Load libmediashow.so success!(V5.2 Build Time:Jan 19 2015 07:05:09)
09-06 17:39:31.600    9792-9792/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:31(609)        Load libmediacore.so success!(V5.2 Build Time:Jan 19 2015 07:05:14)
09-06 17:39:31.600    9792-9792/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:31(611)        PLK(HUAWEI
) hi3635  5.0.2
09-06 17:39:31.830    9792-9792/com.jsjty.jdc.app I/View﹕ ssignParent(ViewParent parent) parent is: android.view.ViewRootImpl@380e75d6
09-06 17:39:32.360    9792-9792/com.jsjty.jdc.app I/View﹕ ssignParent(ViewParent parent) parent is: null
09-06 17:39:32.370    9792-9792/com.jsjty.jdc.app I/View﹕ ssignParent(ViewParent parent) parent is: null
09-06 17:39:32.420    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 1  13.0
09-06 17:39:32.420    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 57.0  69.0
09-06 17:39:32.420    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 2  9.0
09-06 17:39:32.420    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 45.0  70.0
09-06 17:39:32.420    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 7  12.0
09-06 17:39:32.420    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 75.0  10.0
09-06 17:39:32.420    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 30  14.0
09-06 17:39:32.420    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 106.0  10.0
09-06 17:39:33.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 1  13.0
09-06 17:39:33.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 57.0  69.0
09-06 17:39:33.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 2  9.0
09-06 17:39:33.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 45.0  70.0
09-06 17:39:33.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 7  16.0
09-06 17:39:33.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 75.0  10.0
09-06 17:39:33.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 30  14.0
09-06 17:39:33.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 106.0  10.0
09-06 17:39:33.450    9792-9792/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:33(461)        Invoke        BRAC_Connect(192.168.57.74,8906)=0
09-06 17:39:33.480    9792-9792/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:33(491)        Invoke        LoginServer(username=wc1#866945020379227)
09-06 17:39:33.480    9792-9792/com.jsjty.jdc.app I/View﹕ ssignParent(ViewParent parent) parent is: android.view.ViewRootImpl@20ec66e3
09-06 17:39:33.500    9792-9861/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:33(517)        CheckClientSocketLink         Connect(ip=192.168.57.74,port=8906)
09-06 17:39:33.610    9792-9861/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:33(627)        Message        OnConnect(bSuccess:0, errorcode=100)
09-06 17:39:33.640    9792-9792/com.jsjty.jdc.app I/LoginActivity﹕ [LoginActivity.java:252] - 登录连接不成功!
09-06 17:39:34.440    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 1  13.0
09-06 17:39:34.440    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 57.0  69.0
09-06 17:39:34.440    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 2  9.0
09-06 17:39:34.440    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 45.0  70.0
09-06 17:39:34.440    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 7  17.0
09-06 17:39:34.440    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 75.0  10.0
09-06 17:39:34.440    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 30  14.0
09-06 17:39:34.440    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 106.0  10.0
09-06 17:39:35.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 1  13.0
09-06 17:39:35.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 57.0  69.0
09-06 17:39:35.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 2  9.0
09-06 17:39:35.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 45.0  70.0
09-06 17:39:35.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 7  17.0
09-06 17:39:35.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 75.0  10.0
09-06 17:39:35.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 30  14.0
09-06 17:39:35.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 106.0  10.0
09-06 17:39:36.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 1  13.0
09-06 17:39:36.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 57.0  69.0
09-06 17:39:36.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 2  10.0
09-06 17:39:36.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 45.0  70.0
09-06 17:39:36.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 7  19.0
09-06 17:39:36.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 75.0  10.0
09-06 17:39:36.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 30  13.0
09-06 17:39:36.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 106.0  10.0
09-06 17:39:37.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 1  12.0
09-06 17:39:37.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 57.0  69.0
09-06 17:39:37.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 2  10.0
09-06 17:39:37.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 45.0  70.0
09-06 17:39:37.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 7  19.0
09-06 17:39:37.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 75.0  10.0
09-06 17:39:37.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 30  13.0
09-06 17:39:37.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 106.0  10.0
09-06 17:39:38.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 1  12.0
09-06 17:39:38.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 57.0  69.0
09-06 17:39:38.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 2  10.0
09-06 17:39:38.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 45.0  70.0
09-06 17:39:38.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 7  19.0
09-06 17:39:38.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 75.0  10.0
09-06 17:39:38.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 30  13.0
09-06 17:39:38.450    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 106.0  10.0
09-06 17:39:38.630    9792-9861/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:38(641)        CheckClientSocketLink         Connect(ip=192.168.57.74,port=8906)
09-06 17:39:38.740    9792-9861/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:38(752)        Message        OnConnect(bSuccess:0, errorcode=100)
09-06 17:39:38.750    9792-9792/com.jsjty.jdc.app I/LoginActivity﹕ [LoginActivity.java:252] - 登录连接不成功!
09-06 17:39:39.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 1  12.0
09-06 17:39:39.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 57.0  69.0
09-06 17:39:39.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 2  10.0
09-06 17:39:39.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 45.0  70.0
09-06 17:39:39.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 7  19.0
09-06 17:39:39.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 75.0  10.0
09-06 17:39:39.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 30  12.0
09-06 17:39:39.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 106.0  10.0
09-06 17:39:39.760    9792-9861/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:39(777)        CheckClientSocketLink         Connect(ip=192.168.57.74,port=8906)
09-06 17:39:39.800    9792-9861/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:39(809)        Server version: V5.3(Build Time:2015-07-23 20:08:54, Server OS:Windows)
09-06 17:39:39.840    9792-9861/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:39(851)        Message        OnConnect(bSuccess:1, errorcode=0)
09-06 17:39:39.850    9792-9792/com.jsjty.jdc.app I/LoginActivity﹕ [LoginActivity.java:249] - 登录连接成功!
09-06 17:39:40.130    9792-9861/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:40(144)        Message        OnLoginSystem(userid=20153,errorcode=0,username=�ⳡ1), msg deliver worked(0)
09-06 17:39:40.130    9792-9861/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:40(146)        Server running time: 0 days, 2 hours, 40 minutes, license mode:0
09-06 17:39:40.140    9792-9861/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:40(157)        Connection to streaming media server successfully!(udp delay:5ms)
09-06 17:39:40.180    9792-9792/com.jsjty.jdc.app I/View﹕ ssignParent(ViewParent parent) parent is: null
09-06 17:39:40.190    9792-9792/com.jsjty.jdc.app I/View﹕ ssignParent(ViewParent parent) parent is: null
09-06 17:39:40.190    9792-9792/com.jsjty.jdc.app E/dwUserId:﹕ 20153
09-06 17:39:40.230    9792-9792/com.jsjty.jdc.app I/View﹕ ssignParent(ViewParent parent) parent is: android.view.ViewRootImpl@748e3f
09-06 17:39:40.490    9792-9792/com.jsjty.jdc.app I/FragmentMain﹕ [FragmentMain.java:242] - initSdk
09-06 17:39:40.490    9792-9792/com.jsjty.jdc.app I/FragmentMain﹕ [FragmentMain.java:111] - 连接到服务器......
09-06 17:39:40.490    9792-9792/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:40(499)        Invoke        BRAC_Connect(192.168.57.74,8906)=0
09-06 17:39:40.490    9792-9792/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:40(500)        Invoke        EnterRoom(roomid=1000)
09-06 17:39:40.500    9792-9792/com.jsjty.jdc.app I/FragmentMain﹕ [FragmentMain.java:128] - --------------------------------updateUserInfo----------------------------------
09-06 17:39:40.510    9792-9792/com.jsjty.jdc.app I/View﹕ ssignParent(ViewParent parent) parent is: android.view.ViewRootImpl@1cfa9fbe
09-06 17:39:40.520    9792-9861/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:40(532)        Message        OnEnterRoom(roomid=1000,errorcode=0,siteindex=0)
09-06 17:39:40.520    9792-9861/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:40(533)        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
09-06 17:39:40.550    9792-9861/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:40(564)        Message        OnReceiveOnlineUser(count=2,roomid=1000)
09-06 17:39:40.580    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 1  11.0
09-06 17:39:40.590    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 57.0  69.0
09-06 17:39:40.590    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 2  11.0
09-06 17:39:40.590    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 45.0  70.0
09-06 17:39:40.590    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 7  19.0
09-06 17:39:40.590    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 75.0  10.0
09-06 17:39:40.590    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 30  12.0
09-06 17:39:40.590    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 106.0  10.0
09-06 17:39:40.660    9792-9792/com.jsjty.jdc.app I/FragmentMain﹕ [FragmentMain.java:388] - OnAnyChatEnterRoomMessage:  dwRoomId: 1000   dwErrorCode: 0
09-06 17:39:40.660    9792-9792/com.jsjty.jdc.app I/FragmentMain﹕ [FragmentMain.java:218] - -----------------------------[I@3f760e58
09-06 17:39:40.670    9792-9792/com.jsjty.jdc.app I/FragmentMain﹕ [FragmentMain.java:219] - -----------------------------[I@2db31bb1
09-06 17:39:40.670    9792-9792/com.jsjty.jdc.app I/FragmentMain﹕ [FragmentMain.java:128] - --------------------------------updateUserInfo----------------------------------
09-06 17:39:40.670    9792-9792/com.jsjty.jdc.app I/FragmentMain﹕ [FragmentMain.java:135] - GetUserGroups: 5   我的好友
09-06 17:39:40.670    9792-9792/com.jsjty.jdc.app I/FragmentMain﹕ [FragmentMain.java:135] - GetUserGroups: 7   指挥中心
09-06 17:39:40.680    9792-9792/com.jsjty.jdc.app I/FragmentMain﹕ [FragmentMain.java:398] - OnAnyChatOnlineUserMessage: 2   1000
09-06 17:39:40.680    9792-9792/com.jsjty.jdc.app I/FragmentMain﹕ [FragmentMain.java:128] - --------------------------------updateUserInfo----------------------------------
09-06 17:39:40.980    9792-9792/com.jsjty.jdc.app I/View﹕ ssignParent(ViewParent parent) parent is: null
09-06 17:39:40.990    9792-9792/com.jsjty.jdc.app I/View﹕ ssignParent(ViewParent parent) parent is: null
09-06 17:39:41.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 1  11.0
09-06 17:39:41.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 57.0  69.0
09-06 17:39:41.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 2  11.0
09-06 17:39:41.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 45.0  70.0
09-06 17:39:41.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 7  18.0
09-06 17:39:41.430    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 75.0  10.0
09-06 17:39:41.440    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 30  12.0
09-06 17:39:41.440    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 106.0  10.0
09-06 17:39:41.550    9792-9861/com.jsjty.jdc.app I/ANYCHAT﹕ 17:39:41(559)        Message        OnP2PConnectState(userid=20152, state=2)
09-06 17:39:41.610    9792-9792/com.jsjty.jdc.app I/BaseActivity﹕ [BaseActivity.java:85] - ----------------------postion---latitude: 32.012507504061375-------longitude: 118.86910771907016
09-06 17:39:41.610    9792-9792/com.jsjty.jdc.app E/BaseActivity﹕ [BaseActivity.java:86] - -----------------------------0
09-06 17:39:42.210    9792-9792/com.jsjty.jdc.app I/View﹕ ssignParent(ViewParent parent) parent is: null
09-06 17:39:42.210    9792-9792/com.jsjty.jdc.app I/View﹕ ssignParent(ViewParent parent) parent is: null
09-06 17:39:42.310    9792-9792/com.jsjty.jdc.app I/FragmentMain﹕ [FragmentMain.java:277] - OnAnyChatTransBufferEx
09-06 17:39:42.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 1  11.0
09-06 17:39:42.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 57.0  69.0
09-06 17:39:42.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 2  11.0
09-06 17:39:42.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 45.0  70.0
09-06 17:39:42.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 7  18.0
09-06 17:39:42.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 75.0  10.0
09-06 17:39:42.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:142] - 30  12.0
09-06 17:39:42.410    9792-9792/com.jsjty.jdc.app I/BackService﹕ [BackService.java:143] - 106.0  10.0

作者: 佰锐科技-邵光清    时间: 2015-9-6 18:15
请问运行我们提供的demo程序有没有出现这样的问题呢?
作者: 末世蓝风    时间: 2015-9-7 09:03
佰锐科技-邵光清 发表于 2015-9-6 18:15
请问运行我们提供的demo程序有没有出现这样的问题呢?

demo 显示连接服务器失败,自动重连中,请稍后。。。。。。
作者: 佰锐科技-李友勤    时间: 2015-9-7 09:07
末世蓝风 发表于 2015-9-7 09:03
demo 显示连接服务器失败,自动重连中,请稍后。。。。。。

在这种情况下是一直连不上吗
作者: 末世蓝风    时间: 2015-9-7 09:14
佰锐科技-李友勤 发表于 2015-9-7 09:07
在这种情况下是一直连不上吗

一直连不上就是服务器的事了,有时候能连,有时候要等一会
作者: 佰锐科技-李友勤    时间: 2015-9-7 09:17
末世蓝风 发表于 2015-9-7 09:14
一直连不上就是服务器的事了,有时候能连,有时候要等一会

这种情况的话就要测试网络的稳定性了,看看丢包情况。

作者: 末世蓝风    时间: 2015-9-7 09:19
末世蓝风 发表于 2015-9-7 09:14
一直连不上就是服务器的事了,有时候能连,有时候要等一会

而且我想在连接失败的情况下,我能不能断开这种连接,总不能如果IP活着port输入错误就无法停止吧

作者: 末世蓝风    时间: 2015-9-7 09:20
佰锐科技-李友勤 发表于 2015-9-7 09:17
这种情况的话就要测试网络的稳定性了,看看丢包情况。

这种情况跟网络有关,我们这里用的是路由器局域网,应该不会吧!
作者: 佰锐科技-李友勤    时间: 2015-9-7 09:26
本帖最后由 佰锐科技-李友勤 于 2015-9-7 09:45 编辑
末世蓝风 发表于 2015-9-7 09:19
而且我想在连接失败的情况下,我能不能断开这种连接,总不能如果IP活着port输入错误就无法停止吧




您好!AnyChat具备断线重连的机制,默认就是开启的,若要关闭,则可以在OnLinkClose事件中,调用BRAC_Logout,则不会自动重连。

作者: 佰锐科技-李友勤    时间: 2015-9-7 09:28
末世蓝风 发表于 2015-9-7 09:20
这种情况跟网络有关,我们这里用的是路由器局域网,应该不会吧!

先测试下看看结果吧
作者: 末世蓝风    时间: 2015-9-7 09:29
末世蓝风 发表于 2015-9-7 09:19
而且我想在连接失败的情况下,我能不能断开这种连接,总不能如果IP活着port输入错误就无法停止吧

09-07 09:26:22.854  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:22(870)        Invoke        LeaveRoom(roomid=-1)        Elapse:100 ms
09-07 09:26:22.864  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:22(881)        Message        OnLinkClose(reason=0, dwErrorCode:0)
09-07 09:26:23.894  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:23(908)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:26:24.004  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:24(19)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:26:31.044  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:31(60)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:26:31.154  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:31(172)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:26:32.184  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:32(201)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:26:32.294  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:32(312)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:26:40.334  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:40(351)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:26:40.444  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:40(463)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:26:41.474  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:41(488)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:26:41.584  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:41(600)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:26:42.614  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:42(627)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:26:42.724  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:42(738)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:26:48.794  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:48(807)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:26:54.854  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:54(866)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:26:58.914  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:58(930)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:26:59.024  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:59(42)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:27:03.094  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:03(110)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:27:03.204  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:03(222)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:27:07.284  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:07(295)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:27:07.394  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:07(407)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:27:15.454  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:15(467)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:27:15.564  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:15(579)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:27:19.574  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:19(584)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:27:19.684  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:19(700)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:27:27.784  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:27(801)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:27:27.894  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:27(912)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:27:37.944  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:37(958)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:27:38.054  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:38(69)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:27:41.124  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:41(133)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:27:41.234  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:41(245)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:27:42.264  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:42(273)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:27:42.374  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:42(385)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:27:47.404  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:47(416)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:27:47.514  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:47(528)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:27:53.544  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:53(558)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:27:53.654  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:53(670)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:27:57.724  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:27:57(742)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:28:03.754  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:28:03(766)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:28:07.844  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:28:07(857)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:28:07.954  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:28:07(968)        Message        OnConnect(bSuccess:0, errorcode=100)
09-07 09:28:17.964  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:28:17(976)        CheckClientSocketLink         Connect(ip=192.168.57.83,port=8906)
09-07 09:28:24.014  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:28:24(25)        Message        OnConnect(bSuccess:0, errorcode=100)


这是在登陆之后的log日志。我会检查一下是不是网络的问题。
作者: 佰锐科技-李友勤    时间: 2015-9-7 09:32
末世蓝风 发表于 2015-9-7 09:29
09-07 09:26:22.854  17268-17334/com.jsjty.jdc.app I/ANYCHAT﹕ 09:26:22(870)        Invoke        LeaveRoom(roomi ...

能把完整的日志发上来吗?
作者: ehomeud    时间: 2015-10-13 08:53
佰锐科技-李友勤 发表于 2015-9-7 09:32
能把完整的日志发上来吗?

你好,客户端登录 显示 100 错误码 是什么意思呢? 我记得第一次是登录成功的  当我再次登录就一直报100错误 不知道怎么回事 。。。
作者: 佰锐科技-李友勤    时间: 2015-10-13 09:02
ehomeud 发表于 2015-10-13 08:53
你好,客户端登录 显示 100 错误码 是什么意思呢? 我记得第一次是登录成功的  当我再次登录就一直报100 ...

您好,错误码100是指连接超时。请将日志贴上来我们帮您分析下
作者: ehomeud    时间: 2015-10-13 09:26
佰锐科技-李友勤 发表于 2015-10-13 09:02
您好,错误码100是指连接超时。请将日志贴上来我们帮您分析下

现在可以了 谢谢哈




欢迎光临 AnyChat技术支持论坛 (http://bbs.anychat.cn/) Powered by Discuz! X3