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.
我想使用 SASL ANONYMOUS 连接到 XMPP 服务器。
我可以使用任何可用于商业用途的库。
关于如何做到这一点以及使用什么库的任何建议?
我查看了一些库(agsXMPP 和 jabber.net)的文档,但无法弄清楚如何在任何一个库上进行任何匿名连接。
谢谢!
在 OnSaslStart 事件中可以选择 Sasl 匿名机制
private void XmppCon_OnSaslStart(object sender, SaslEventArgs args) { args.Auto = false; Mechanism.GetMechanismName(MechanismType.ANONYMOUS); }