fd15k has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks,

There seems to be a problem with inheritance in Net::Jabber, which extends Net::XMPP.
Some of the subs aren't overloaded, so the code isnt' working properly. Maybe somebody
has a fix for that issue already...

Thank you!

Replies are listed 'Best First'.
Re: Net::Jabber is broken ?
by lidden (Curate) on Feb 25, 2005 at 09:08 UTC
    This question is way too fuzzy to answer. You should post a small piece of code that shows the problem you have and tell us both what it does and what you want it to do. Then maybe somebody has a useful comment to give you.

      There are demo scripts rpc_client.pl and rpc_server.pl in the original distribution of Net::Jabber package to demonstrate Jabber RPC functionality. Those samples don't work, because rpc_server.pl uses Net::Jabber::Client::RPCSetCallBacks() to set user subs for call processing.

      RPCSetCallbacks() doesn't really do anything, but prepares some internal data structures, while real work is performed by Net::Jabber::Protocol::callbackInit() (Net::Jabber::Protocol is inherited by Net::Jabber::Client), which is supposed to override the same sub in Net::XMPP::Protocol (also inherited by Net::Jabber::Client through Net::XMPP::Client).

      So I believe there is a problem with definition of Net::Jabber::Client, but I'm not good enough to fix it myself :-)