Smack - XMPP客户端开发包


Apache
跨平台
Java

软件简介

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();