Hi All,

There are two parts to this question, so please bare with me:

The overview.
I am trying to inline the jabber.org C++ libraries for writing jabber server 
components.
These libraries are written in C++ and are threaded ( you allocate a thread pool size 
for handling jabber requests ).
In order to create a wrapper for these libraries I need to beable to first - wrapper 
the library functions for setting up connections and thread pools, and then allocate a 
function that is a callback each time a jabber message is handled.
(1) Wrappering the libraries as a whole is possible - I have done a quick hack, but 
creating a callback into the perl interpreter from a threaded C++ library is proving 
very difficult indeed ( well at least it is for me ).
(2) with Inline::CPP - a lot of the header files for the JECL libraries seem to 
conflict badly with those of perl - to get round this I hacked Inline::CPP so that I 
could include these headers before the standard perl ones - this worked with no 
problem, but there is no way of doing this standardly with Inline / CPP.

Any help with either of these problems would be greatly appreciated.

Thanks - Piers Harding.

Reply via email to