GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DJABBERD::COMPONENT::EXAMPLE (3)

.ds Aq ’

NAME

DJabberd::Component::Example - An example DJabberd service component

CONTENTS

SYNOPSIS



  <Subdomain example>
      <Plugin DJabberd::Component::Example>
          Greeting Hello, world!
      </Plugin>
  </Subdomain>



This class implements a very simple component that responds to all incoming messages with a predefined greeting and which returns a vCard for itself when one is requested. You can change the greeting returned using the optional Greeting configuration setting as above.

This example also exposes a node called somebloke that responds to all messages with authentic British surprise.

This example uses the higher-level API provided by DJabberd::Agent, from which DJabberd::Component inherits. DJabberd::Component::External serves as an example of how to handle stanzas at a lower level by overriding the handle_stanza method.

COPYRIGHT

This module is Copyright (c) 2008 Martin Atkins

This module is distributed under the same terms as the main DJabberd distribution.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DJABBERD::COMPONENT::EXAMPLE (3) 2011-06-13

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.