Register | Login  
 
   Search  
 
 
   Conferences  
       
 
Below are the conferences currently available to the Coversant Developer Community.  As the community grows, so will these conference rooms.  If you'd like to see additional conferences added, please let us know through the forums.  Thanks.
 
Coversant Developer Community SoapBox (developers@conference.coversant.net)

This is a open conference room where developers are welcome to discuss all things XMPP and software development based on the SoapBox Platform.  Use your favorite XMPP client, and join the Coversant Developer Community SoapBox at developers@conference.coversant.net. 

 
Don't have a client?  Just download SoapBox Communicator 2005.
   

   Forums  
       
 
Subject: Using regular sockets with XMPPSocket

You are not authorized to post a reply.   
Author Messages
Pete Restall
Posts:1

02/25/2008 7:21 AM Alert 
Hello,

I recently downloaded the SoapBox Framework to evaluate its potential for integration in an existing server-based application. However, I am having difficulty achieving anything, and unfortunately there don't appear to be any server samples or complete library documentation (if I'm missing something, please don't hesitate to point me in the right direction).

At the moment, I have an existing socket listener that will pass Accept()'d connections to another layer for processing; this is where I wish to integrate with the SoapBox library. I want to pass the library an Accept()'d socket (via the XMPPSocket constructor), but when I try to do this it looks like the _networkStream object in XMPPSocket is not initialised (that would be the job of InitAccept, but that is internal, and as far as I can see, only called from XMPPSocketListener). When calling Send(), etc. I then get a null reference exception.

Is there a way to achieve what I'm trying to do ? If not, is it possible to do it another way, such as reading/writing the raw bytes to/from the socket myself (as I'm doing elsewhere in this application for other protocols) and just pass those to something in the Jabber library to decode/send me a response packet back ?

I've been looking at this for a few days now and don't appear any closer towards achieving my goal; any help would be much appreciated. If I can't get this to work I'll probably have to use something like Jabber-Net or PInvoke one of the numerous C/C++ libraries out there, which I'm not too keen on (and SoapBox works on SmartPhones, which is a big plus).

If you need any further information, please ask and I'll see what I can do.

Cheers.
You are not authorized to post a reply.
Forums > Support > Questions > Using regular sockets with XMPPSocket



ActiveForums 3.6