Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要获取 XMPP 服务器 (OpenFire) 中的 MUC 列表。我已阅读有关 XEP 0030 和服务发现的信息,但找不到有关使用 xmpppy 实现它的文档或示例。
查看xmpp/features.py,并尝试这样的代码:
xmpp/features.py
for i in discoverItems(conn, jid.getDomain()): (ids, features) = discoverInfo(conn, i.jid) if NS_MUC in features: print i.jid
(警告:完全未经测试)