I have been following the implementation of agsXMPP and Jabber.NET to see how they did it and afaik I have cloned that part fairly closely. I don't use the same stream again I assign the new sslstream to the same variable the old networkstream was. If anyone can see what I am doing wrong please feel free to fix it.
On 7/3/07, Chris Mullins <[EMAIL PROTECTED]> wrote:
Doing this is… a lot of work. Getting the SASL libraries right, and the feature negotiation is difficult. There are three C# libs out there that already do this. You can look at source code for all of them: - SoapBox Framework - http://www.coversant.com/Products/SoapBoxStudio/Overview/tabid/106/Default.aspx - Jabber.Net - http://code.google.com/p/jabber-net/ - agsXMPP - http://www.ag-software.de/index.php?page=agsxmpp-sdk I would recommend taking a look at how those SDK's are using the .Net SSL Stream class. -- Chris Mullins *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Dieter Lunn *Sent:* Tuesday, July 03, 2007 8:30 AM *To:* Jabber software development list *Subject:* [jdev] C# SslStream Issues Hi I am writing a library in C# and I am having issues changing to a secure stream. When I start the authenticate as client and it receives the data and runs it through the xml parser and I get an error. The socket code can be found here: http://xmppnet.googlecode.com/svn/trunk/xmpp/net/AsyncSocket.cs -- Dieter Lunn http://www.coder2000.ca
-- Dieter Lunn http://www.coder2000.ca
