简体   繁体   中英

Connect to XMPP server using SASL ANONYMOUS in c#

I want to connect to an XMPP server using SASL ANONYMOUS.

I can use any library that is available for commercial use.

Any advice on how to do this and what library to use?

I've looked into the documentation of some libraries (agsXMPP and jabber.net) and couldn't figure out how to do any anonymous connection on either.

Thanks!

in the OnSaslStart event you can select the Sasl anonymous mechanism

private void XmppCon_OnSaslStart(object sender, SaslEventArgs args)
{
   args.Auto = false;
   Mechanism.GetMechanismName(MechanismType.ANONYMOUS);
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM