[JDEV] Net::Jabber and oob
Rico -mc- Gloeckner
jedv at ukeer.de
Fri Mar 22 03:03:16 CST 2002
Hi,
i wrote a tiny perl client for jabber and everything was working fine,
but when i get a Mail from, i.e. a Psi Client with oob Data for, i.e.
URLs, iam lost on how to decode them.
i have the callback for messages setup:
sub doMessage {
my $reference = shift;
my $message = shift;
my $mfrom = $message->GetFrom() || "";
[...]
Now, i thought, its an x Namespace, so it would be appropriate to get the
whole jabber:x:oob Entitity via:
my @mxspace = $message->GetX() || "";
I expected any Ref to handle the OOB Data, but all i got was a simple
"1". Since iam still a bit of unexperienced in advanced Perl Techniques
i tried to change the Context, i.e. to Scalar, Array and Hash, but none
seemed to work. Also trying to directly access the $message Object with
Methods which are valid for jabber:x:oob Objects failed, ofcourse.
Can someone enlighten me?
TIA,
-mc
--
| Rico -mc- Gloeckner | <rico at gloeckner.info> | {ICQ:99798577} |
| http://www.ukeer.de | mc (at) irc.tu-ilmenau.de | <mc at na.sow.as> |
| Jabber: mc at micq.org | :wq
More information about the JDev
mailing list