NAME

Jabber::JAX::Packet - Perl wrapper for the JECL Library creates a jax::Packet C++ object that is either received as the second argument of the Component callback handler ( see Jabber::JAX::Component ), or is created for outbound delivery of an XML packet.

SYNOPSIS

 use Jabber::JAX::Packet;
 use Jabber::Judo::Element;
 my $e = new Jabber::Judo::Element( "message" );
 $e->putAttrib("to", "piers\@localhost");
 $e->putAttrib("from", "echo\@localhost");
 my $e1 = $e->addElement("body");
 $e1->addCDATA("Hello World");
 my $p = new Jabber::JAX::Packet( $e );

 # ... in the context of the  callback subroutine
 $rc->deliver( $p );

DESCRIPTION

Jabber::JAX::Component is yet another perl implementation for writing Jabber components. How it differs is that it is a wrapper for the high performance JECL libraries for writing components in C++.

Jabber::JAX::Packet is the complement for the jax::Packet C++ object ( see the jax.h header file for a description ). It basically only has one method and that is $p->getElement() for retrieving the Jabber::Judo::Element ( judo::Element ) inside. The Element object is the unit that has all the XML node manipulation methods/tools ( see perldoc Jabber::Judo::Element ).

VERSION

very new

AUTHOR

Piers Harding - but DizzyD ( author of JECL ) is the real star

SEE ALSO

Jabber::JAX::Packet, Jabber::JAX::Component, Jabber::JAX::MyRouterConnection, Jabber::Judo::Element