Smack 3.4.0 发布了,该版本在发布结构、日志和配置方面都有值得关注的改进,详情请看发行说明。
Smack是一个开源,易于使用的XMPP(jabber)的 Java 客户端类库。
示例代码:
// Create a connection to the jabber.org server.
Connection conn1 = new XMPPConnection("jabber.org");
conn1.connect();
// Create a connection to the jabber.org server on a specific port.
ConnectionConfiguration config = new ConnectionConfiguration("jabber.org", 5222);
Connection conn2 = new XMPPConnection(config);
conn2.connect();
Smack 的下载地址:请点这里
