Library compiled

May 20, 2012 at 7:32 AM

Anyone who hav compiled the library, kindly help. I need to work with this library. 

May 20, 2012 at 5:49 PM

If you download the latest release you can get the binaries to use the library.  I realize some of the lower level C++ components need alot installed to compile, so you can use this to just get those components.

May 21, 2012 at 7:23 AM
I have compiled the library. But my client is not authenticating . I get "Graceful Disconnect" when try to connect. Same happening with the provided xmpp client example.

Sent from my Windows Phone
May 25, 2012 at 6:52 PM


this API looks great, Good Job!

But I have the same problem like ribhuchawla.
Always when I connect, on Authenticating it changes the State to Unknown.

The cause is in this Function

        /// <summary>
        /// Function is called by our read threads whenever data is received.  This function calls the
        /// OnRecvData function, which is the one that should be overriden by the user.
        /// </summary>
        /// <param name="ar"></param>
        private void ReceiveComplete(object sender, SocketAsyncEventArgs e)
            if (Client == null)

            if (e == null)
                throw new Exception("SocketAsyncEventArgs was null");

            byte[] bData = (byte[])e.Buffer;

            int nLen = e.BytesTransferred;
            if (nLen == 0)
                if (UserInitiatedDisconnect == false)
                   OnDisconnect("Graceful Disconnect");
            if (bData == null)
                throw new Exception("bData is null in SocketClient.OnRecvDataAll");

                byte[] bPassIn = new byte[nLen];
                Array.Copy(bData, 0, bPassIn, 0, nLen);

                /// Check in our buffer, prevent pinning
                if (m_BufferPool != null)

                OnRecvData(bPassIn, nLen);
            catch (System.NullReferenceException exnull)
                throw new Exception("Something is null here... not sure what", exnull);


Because nlen == 0, it disconnects with a "Graceful Disconnect".
But why doesn't it receive anything?

I cannot find the problem.


Thanks for help.

Regards, Fensterbank

May 26, 2012 at 6:58 AM
Figured out the error. Now working fine with me.

Very basic error.
Just have to enable UseOldTLS and TLS
after that it will look something like

XmppClient.UseOldStyleTLS = true;
XmppClient.UseTLS = true ;

This worked for me.

Sent from my Windows Phone
May 26, 2012 at 3:05 PM

Yes, you're right.

I thougth, I tested this version too. Okay, but now it continiues. :)

Aug 14, 2013 at 8:41 AM
hi ribhuchawla,
Kindly Please provide me the compiled XMPP library or suggest me to compile this Xmedianet project.
I'm new to windows phone development kindly help me to do this.
Thanks in advance.