Rechercher une page de manuel
DJabberd::Component.3pm
Langue: en
Version: 2006-12-25 (mandriva - 22/10/07)
Section: 3 (Bibliothèques de fonctions)
NAME
DJabberd::Component - Abstract class representing a component in DJabberdSYNOPSIS
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
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre