Smack 3.4.1 发布,从这个版本开始 Smack 换了新的维护者,此版本主要是修复了在论坛上确认的内存泄漏问题,所以请大家尽快更新!
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 的下载地址:请点这里
相关阅读:
使用 Smack 和 SELinux 增强轻量级容器 http://www.linuxidc.com/Linux/2009-04/19392.htm