DJabberd::Component - Abstract class representing a component in DJabberd
package MyPackage::DJabberd::MyComponent; use base DJabberd::Component; sub initialize { my ($self, $opts) = @_; # ... perform initialization } sub handle_stanza { my ($self, $vhost, $stanza) = @_; # ... handle the given stanza }
This class provides a parent class for all DJabberd components. Components that inherit from this class can then be used directly by the server via the DJabberd::Plugin::Component plugin, or used directly by other classes.
See DJabberd::Component::Example for an example component implementation.
TODO: Write more docs
To install DJabberd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DJabberd
CPAN shell
perl -MCPAN -e shell install DJabberd
For more information on module installation, please visit the detailed CPAN module installation guide.