Smack_XMPPXMPP 客戶端開發(fā)包
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();評論
圖片
表情
