
IM
JieZhongBa
这个作者很懒,什么都没留下…
展开
-
smack连接远程openfire连接超时-No response received within reply timeout. Timeout was 5000ms (~5s).
原因:没加端口号调整代码:try { System.out.println("正在连接Chat服务。。。"); XMPPTCPConnectionConfiguration configuration = XMPPTCPConnectionConfiguration.builder() .setResource(Resourcepart.from(C_SOURCE))//固定源 .setHostAddress(InetAddress.get原创 2021-07-04 23:23:03 · 1083 阅读 · 1 评论 -
smack+openfire实现Android实时通信(实现大部分基本功能)
1. 开发环境smack-4.3.4openfire-4.6.3开发工具:AndroidStudioopenfire下载及安装:官网:https://igniterealtime.org/projects/openfire/优快云:https://download.youkuaiyun.com/download/JieZhongBa/20015330安装教程:<>本文项目地址:https://blog.youkuaiyun.com/JieZhongBa/article/details/1184原创 2021-07-04 17:48:02 · 1173 阅读 · 0 评论 -
Android使用smack连接openfire(本地+远程)
1. 依赖使用smack4.3.4,实测这两条足矣implementation "org.igniterealtime.smack:smack-tcp:4.3.4"implementation "org.igniterealtime.smack:smack-android-extensions:4.3.4"可将第二条替换为这个,轻量些,不想麻烦直接用上面的即可。implementation "org.igniterealtime.smack:smack-android:4.3.4"2. 本地原创 2021-07-01 23:25:00 · 597 阅读 · 2 评论 -
smack连接openfire
这里用的smack 4.3.4,有一些改变要注意:import org.jivesoftware.smack.AbstractXMPPConnection;import org.jivesoftware.smack.ConnectionConfiguration;import org.jivesoftware.smack.tcp.XMPPTCPConnection;import org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration;i原创 2021-06-13 09:32:31 · 1590 阅读 · 4 评论