Smack_XMPPXMPP 客户端开发包
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();
评论