Smack 3.3.1 發佈了,這是一個小更新版本,主要更新包括:code
- [SMACK-441] - Memory leak in KeepAliveManager
- [SMACK-447] - Compression is not enabled for Java7ZlibInputOutputStream
- [SMACK-448] - Java7ZlibInputOutputStream does not work. Deflater.DEFAULT_STRATEGY is used as compression level when it should use Deflater.DEFAULT_COMPRESSION
- [SMACK-450] - VCard.load() throws null pointer exception if there is no VCard for the user
- [SMACK-455] - Multiple items doesn`t not parse correctly in a pubsub message
- [SMACK-369] - Exceptions during login should get thrown back up to the caller.
Smack是一個開源,易於使用的XMPP(jabber)的 Java 客戶端類庫。server
示例代碼:ip
2 |
Connection conn1 = new XMPPConnection( "jabber.org" ); |
6 |
ConnectionConfiguration config = new ConnectionConfiguration( "jabber.org" , 5222 ); |
7 |
Connection conn2 = new XMPPConnection(config); |