++ed by:

2 non-PAUSE users.

Ryan Eatmon


Net::Jabber::X::Oob - Jabber X Out Of Bandwidth File Transfer Module


  Net::Jabber::X::Oob is a companion to the Net::Jabber::X module.
  It provides the user a simple interface to set and retrieve all 
  parts of a Jabber X Oob.


  To initialize the Oob with a Jabber <x/> you must pass it the 
  XML::Parser Tree array from the module trying to access the <x/>.  
  In the callback function:

    use Net::Jabber;

    sub iq {
      my $foo = new Net::Jabber::Foo(@_);

      my @xTags = $foo->GetX("jabber:x:oob");

      my $xTag;
      foreach $xTag (@xTags) {

  You now have access to all of the retrieval functions available.

  To create a new Oob to send to the server:

    use Net::Jabber;

    $foo = new Net::Jabber::Foo();
    $x = $foo->NewX("jabber:x:oob");

  Now you can call the creation functions below.

  For more information about the array format being passed to the CallBack
  please read the Net::Jabber::Client documentation.

Retrieval functions

    $url  = $xTag->GetURL();
    $desc = $xTag->GetDesc();

Creation functions

                  desc=>"Picture of Bob, the one and only");

    $xTag->SetDesc("Bob and Me at the Open Source conference");


Retrieval functions

  GetURL() - returns a string with the URL of the file being sent Oob.

  GetDesc() - returns a string with the description of the file being
               sent Oob.

Creation functions

  SetOob(url=>string,  - set multiple fields in the <x/> at one
         desc=>string)   time.  This is a cumulative and over
                         writing action.  If you set the "url"
                         attribute twice, the second setting is
                         what is used.  If you set the url, and
                         then set the desc then both will be in
                         the <x/> tag.  For valid settings read the
                         specific Set functions below.

  SetURL(string) - sets the URL for the file being sent Oob.

  SetDesc(string) - sets the description for the file being sent Oob.

Test functions

  DefinedURL() - returns 1 if <url/> exists in the x, 0 otherwise.

  DefinedDesc() - returns 1 if <desc/> exists in the x, 0 otherwise.


By Ryan Eatmon in May of 2000 for http://jabber.org..


This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.