This is Info file pm.info, produced by Makeinfo version 1.68 from the
input file bigpm.texi.
File: pm.info, Node: Net/Jabber/Dialback/Result, Next: Net/Jabber/Dialback/Verify, Prev: Net/Jabber/Dialback, Up: Module List
Jabber Dialback Result Module
*****************************
NAME
====
Net::Jabber::Dialback::Result - Jabber Dialback Result Module
SYNOPSIS
========
Net::Jabber::Dialback::Result is a companion to the Net::Jabber::Dialback
module. It provides the user a simple interface to set and retrieve all
parts of a Jabber Dialback Result.
DESCRIPTION
===========
To initialize the Result with a Jabber you must pass it the
XML::Parse::Tree array. For example:
my $dialback = new Net::Jabber::Dialback::Result(@tree);
There has been a change from the old way of handling the callbacks.
You no longer have to do the above, a Net::Jabber::Dialback::Result
object is passed to the callback function for the dialback:
use Net::Jabber;
sub dialback {
my ($Result) = @_;
.
.
.
}
You now have access to all of the retrieval functions available.
To create a new dialback to send to the server:
use Net::Jabber;
$Result = new Net::Jabber::Dialback::Result();
Now you can call the creation functions below to populate the tag before
sending it.
For more information about the array format being passed to the CallBack
please read the Net::Jabber::Client documentation.
Retrieval functions
-------------------
$to = $Result->GetTo();
$from = $Result->GetFrom();
$type = $Result->GetType();
$data = $Result->GetData();
$str = $Result->GetXML();
@dialback = $Result->GetTree();
Creation functions
------------------
$Result->SetResult(from=>"jabber.org",
to=>"jabber.com",
data=>key);
$Result->SetTo("jabber.org");
$Result->SetFrom("jabber.com");
$Result->SetType("valid");
$Result->SetData(key);
Test functions
--------------
$test = $Result->DefinedTo();
$test = $Result->DefinedFrom();
$test = $Result->DefinedType();
METHODS
=======
Retrieval functions
-------------------
GetTo() - returns a string with server that the is being
sent to.
GetFrom() - returns a string with server that the is being
sent from.
GetType() - returns a string with the type this is.
GetData() - returns a string with the cdata of the .
GetXML() - returns the XML string that represents the .
This is used by the Send() function in Server.pm to send
this object as a Jabber Dialback Result.
GetTree() - returns an array that contains the tag
in XML::Parser::Tree format.
Creation functions
------------------
SetResult(to=>string, - set multiple fields in the
from=>string, at one time. This is a cumulative
type=>string, and over writing action. If you set
data=>string) the "from" attribute twice, the second
setting is what is used. If you set
the type, and then set the data
then both will be in the
tag. For valid settings read the
specific Set functions below.
SetTo(string) - sets the to attribute.
SetFrom(string) - sets the from attribute.
SetType(string) - sets the type attribute. Valid settings are:
valid
invalid
SetData(string) - sets the cdata of the .
Test functions
--------------
DefinedTo() - returns 1 if the to attribute is defined in the
, 0 otherwise.
DefinedFrom() - returns 1 if the from attribute is defined in the
, 0 otherwise.
DefinedType() - returns 1 if the type attribute is defined in the
, 0 otherwise.
AUTHOR
======
By Ryan Eatmon in May of 2000 for http://jabber.org..
COPYRIGHT
=========
This module is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
File: pm.info, Node: Net/Jabber/Dialback/Verify, Next: Net/Jabber/IQ, Prev: Net/Jabber/Dialback/Result, Up: Module List
Jabber Dialback Verify Module
*****************************
NAME
====
Net::Jabber::Dialback::Verify - Jabber Dialback Verify Module
SYNOPSIS
========
Net::Jabber::Dialback::Verify is a companion to the Net::Jabber::Dialback
module. It provides the user a simple interface to set and retrieve all
parts of a Jabber Dialback Verify.
DESCRIPTION
===========
To initialize the Verify with a Jabber you must pass it the
XML::Parse::Tree array. For example:
my $dialback = new Net::Jabber::Dialback::Verify(@tree);
There has been a change from the old way of handling the callbacks.
You no longer have to do the above, a Net::Jabber::Dialback::Verify
object is passed to the callback function for the dialback:
use Net::Jabber;
sub dialback {
my ($Verify) = @_;
.
.
.
}
You now have access to all of the retrieval functions available.
To create a new dialback to send to the server:
use Net::Jabber;
$Verify = new Net::Jabber::Dialback::Verify();
Now you can call the creation functions below to populate the tag before
sending it.
For more information about the array format being passed to the CallBack
please read the Net::Jabber::Client documentation.
Retrieval functions
-------------------
$to = $Verify->GetTo();
$from = $Verify->GetFrom();
$type = $Verify->GetType();
$id = $Verify->GetID();
$data = $Verify->GetData();
$str = $Verify->GetXML();
@dialback = $Verify->GetTree();
Creation functions
------------------
$Verify->SetVerify(from=>"jabber.org",
to=>"jabber.com",
id=>id,
data=>key);
$Verify->SetTo("jabber.org");
$Verify->SetFrom("jabber.com");
$Verify->SetType("valid");
$Verify->SetID(id);
$Verify->SetData(key);
Test functions
--------------
$test = $Verify->DefinedTo();
$test = $Verify->DefinedFrom();
$test = $Verify->DefinedType();
$test = $Verify->DefinedID();
METHODS
=======
Retrieval functions
-------------------
GetTo() - returns a string with server that the is being
sent to.
GetFrom() - returns a string with server that the is being
sent from.
GetType() - returns a string with the type this is.
GetID() - returns a string with the id this is.
GetData() - returns a string with the cdata of the .
GetXML() - returns the XML string that represents the .
This is used by the Send() function in Server.pm to send
this object as a Jabber Dialback Verify.
GetTree() - returns an array that contains the tag
in XML::Parser::Tree format.
Creation functions
------------------
SetVerify(to=>string, - set multiple fields in the
from=>string, at one time. This is a cumulative
type=>string, and over writing action. If you set
id=>string, the "from" attribute twice, the second
data=>string) setting is what is used. If you set
the type, and then set the data
then both will be in the
tag. For valid settings read the
specific Set functions below.
SetTo(string) - sets the to attribute.
SetFrom(string) - sets the from attribute.
SetType(string) - sets the type attribute. Valid settings are:
valid
invalid
SetID(string) - sets the id attribute.
SetData(string) - sets the cdata of the .
Test functions
--------------
DefinedTo() - returns 1 if the to attribute is defined in the
, 0 otherwise.
DefinedFrom() - returns 1 if the from attribute is defined in the
, 0 otherwise.
DefinedType() - returns 1 if the type attribute is defined in the
, 0 otherwise.
DefinedID() - returns 1 if the id attribute is defined in the
, 0 otherwise.
AUTHOR
======
By Ryan Eatmon in May of 2000 for http://jabber.org..
COPYRIGHT
=========
This module is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
File: pm.info, Node: Net/Jabber/IQ, Next: Net/Jabber/JID, Prev: Net/Jabber/Dialback/Verify, Up: Module List
Jabber Info/Query Library
*************************
NAME
====
Net::Jabber::IQ - Jabber Info/Query Library
SYNOPSIS
========
Net::Jabber::IQ is a companion to the Net::Jabber module. It
provides the user a simple interface to set and retrieve all {iq}->
parts of a Jabber IQ.
DESCRIPTION
===========
Net::Jabber::IQ differs from the other Net::Jabber::* modules in that
the XMLNS of the query is split out into more submodules under
IQ. For specifics on each module please view the documentation
for each Net::Jabber::Query::* module. To see the list of avilable
namspaces and modules see Net::Jabber::Query.
To initialize the IQ with a Jabber you must pass it the
XML::Parser Tree array. For example:
my $iq = new Net::Jabber::IQ(@tree);
There has been a change from the old way of handling the callbacks.
You no longer have to do the above, a Net::Jabber::IQ object is passed
to the callback function for the iq:
use Net::Jabber;
sub iq {
my ($IQ) = @_;
.
.
.
}
You now have access to all of the retrieval functions available.
To create a new iq to send to the server:
use Net::Jabber;
$IQ = new Net::Jabber::IQ();
$IQType = $IQ->NewQuery( type );
$IQType->SetXXXXX("yyyyy");
Now you can call the creation functions for the IQ, and for the
on the new Query object itself. See below for the functions, and
in each query module for those functions.
For more information about the array format being passed to the CallBack
please read the Net::Jabber::Client documentation.
Retrieval functions
-------------------
$to = $IQ->GetTo();
$toJID = $IQ->GetTo("jid");
$from = $IQ->GetFrom();
$fromJID = $IQ->GetFrom("jid");
$id = $IQ->GetID();
$type = $IQ->GetType();
$error = $IQ->GetError();
$errorCode = $IQ->GetErrorCode();
$queryTag = $IQ->GetQuery();
$queryTree = $IQ->GetQueryTree();
$str = $IQ->GetXML();
@iq = $IQ->GetTree();
Creation functions
------------------
$IQ->SetIQ(tYpE=>"get",
tO=>"bob@jabber.org",
query=>"info");
$IQ->SetTo("bob@jabber.org");
$IQ->SetFrom("me\@jabber.org");
$IQ->SetType("set");
$IQ->SetIQ(to=>"bob\@jabber.org",
errorcode=>403,
error=>"Permission Denied");
$IQ->SetErrorCode(403);
$IQ->SetError("Permission Denied");
$IQObject = $IQ->NewQuery("jabber:iq:auth");
$IQObject = $IQ->NewQuery("jabber:iq:roster");
$iqReply = $IQ->Reply();
$iqReply = $IQ->Reply("client");
$iqReply = $IQ->Reply("transport");
Test functions
--------------
$test = $IQ->DefinedTo();
$test = $IQ->DefinedFrom();
$test = $IQ->DefinedID();
$test = $IQ->DefinedType();
$test = $IQ->DefinedError();
$test = $IQ->DefinedErrorCode();
METHODS
=======
Retrieval functions
-------------------
GetTo() - returns either a string with the Jabber Identifier,
GetTo("jid") or a Net::Jabber::JID object for the person who is
going to receive the . To get the JID
object set the string to "jid", otherwise leave
blank for the text string.
GetFrom() - returns either a string with the Jabber Identifier,
GetFrom("jid") or a Net::Jabber::JID object for the person who
sent the . To get the JID object set
the string to "jid", otherwise leave blank for the
text string.
GetType() - returns a string with the type this is.
GetID() - returns an integer with the id of the .
GetError() - returns a string with the text description of the error.
GetErrorCode() - returns a string with the code of error.
GetQuery() - returns a Net::Jabber::Query object that contains the data
in the of the .
GetQueryTree() - returns an XML::Parser::Tree object that contains the
data in the of the .
GetXML() - returns the XML string that represents the . This
is used by the Send() function in Client.pm to send
this object as a Jabber IQ.
GetTree() - returns an array that contains the tag in XML::Parser
Tree format.
Creation functions
------------------
SetIQ(to=>string|JID, - set multiple fields in the at one
from=>string|JID, time. This is a cumulative and over
id=>string, writing action. If you set the "to"
type=>string, attribute twice, the second setting is
errorcode=>string, what is used. If you set the status, and
error=>string) then set the priority then both will be in
the tag. For valid settings read the
specific Set functions below.
SetTo(string) - sets the to attribute. You can either pass a string
SetTo(JID) or a JID object. They must be a valid Jabber
Identifiers or the server will return an error message.
(ie. jabber:bob@jabber.org, etc...)
SetFrom(string) - sets the from attribute. You can either pass a string
SetFrom(JID) or a JID object. They must be a valid Jabber
Identifiers or the server will return an error message.
(ie. jabber:bob@jabber.org, etc...)
SetType(string) - sets the type attribute. Valid settings are:
get request information
set set information
result results of a get
SetErrorCode(string) - sets the error code of the .
SetError(string) - sets the error string of the .
NewQuery(string) - creates a new Net::Jabber::Query object with the
namespace in the string. In order for this function
to work with a custom namespace, you must define and
register that namespace with the IQ module. For more
information please read the documentation for
Net::Jabber::Query. NOTE: Jabber does not support
custom IQs at the time of this writing. This was just
including in case they do at some point.
Reply(type=>string) - creates a new IQ object and populates the to/from
fields. The type will be set in the .
Test functions
--------------
DefinedTo() - returns 1 if the to attribute is defined in the ,
0 otherwise.
DefinedFrom() - returns 1 if the from attribute is defined in the ,
0 otherwise.
DefinedID() - returns 1 if the id attribute is defined in the ,
0 otherwise.
DefinedType() - returns 1 if the type attribute is defined in the ,
0 otherwise.
DefinedError() - returns 1 if is defined in the ,
0 otherwise.
DefinedErrorCode() - returns 1 if the code attribute is defined in
, 0 otherwise.
AUTHOR
======
By Ryan Eatmon in May of 2000 for http://jabber.org..
COPYRIGHT
=========
This module is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
File: pm.info, Node: Net/Jabber/JID, Next: Net/Jabber/Key, Prev: Net/Jabber/IQ, Up: Module List
Jabber JID Module
*****************
NAME
====
Net::Jabber::JID - Jabber JID Module
SYNOPSIS
========
Net::Jabber::JID is a companion to the Net::Jabber module.
It provides the user a simple interface to set and retrieve all
parts of a Jabber JID (userid on a server).
DESCRIPTION
===========
To initialize the JID you must pass it the string that represents the
jid from the Jabber XML packet. Inside the Jabber modules this is
done automatically and the JID object is returned instead of a string.
For example, in the callback function for the Jabber object foo:
use Net::Jabber;
sub foo {
my $foo = new Net::Jabber::Foo(@_);
my $from = $foo->GetFrom();
my $JID = new Net::Jabber::JID($from);
.
.
.
}
You now have access to all of the retrieval functions available.
To create a new JID to send to the server:
use Net::Jabber;
$JID = new Net::Jabber::JID();
Now you can call the creation functions below to populate the tag before
sending it.
Retrieval functions
-------------------
$userid = $JID->GetUserID();
$server = $JID->GetServer();
$resource = $JID->GetResource();
$JID = $JID->GetJID();
$fullJID = $JID->GetJID("full");
Creation functions
------------------
$JID->SetJID(userid=>"bob",
server=>"jabber.org",
resource=>"Work");
$JID->SetJID("blue@moon.org/Home");
$JID->SetUserID("foo");
$JID->SetServer("bar.net");
$JID->SetResource("Foo Bar");
METHODS
=======
Retrieval functions
-------------------
GetUserID() - returns a string with the Jabber userid of the JID.
If the string is an address (bob%jabber.org) then
the function will return it as an address
(bob@jabber.org).
GetServer() - returns a string with the Jabber server of the JID.
GetResource() - returns a string with the Jabber resource of the JID.
GetJID() - returns a string that represents the JID stored
GetJID("full") within. If the "full" string is specified, then
you get the full JID, including Resource, which
should be used to send to the server.
Creation functions
------------------
SetJID(userid=>string, - set multiple fields in the jid at
server=>string, one time. This is a cumulative
resource=>string) and over writing action. If you set
SetJID(string) the "userid" attribute twice, the second
setting is what is used. If you set
the server, and then set the resource
then both will be in the jid. If all
you pass is a string, then that string
is used as the JID. For valid settings
read the specific Set functions below.
SetUserID(string) - sets the userid. Must be a valid userid or the
server will complain if you try to use this JID
to talk to the server. If the string is an
address then it will be converted to the %
form suitable for using as a Jabber User ID.
SetServer(string) - sets the server. Must be a valid host on the
network or the server will not be able to talk
to it.
SetResource(string) - sets the resource of the userid to talk to.
AUTHOR
======
By Ryan Eatmon in May of 2000 for http://jabber.org..
COPYRIGHT
=========
This module is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
File: pm.info, Node: Net/Jabber/Key, Next: Net/Jabber/Log, Prev: Net/Jabber/JID, Up: Module List
Jabber Key Library
******************
NAME
====
Net::Jabber::Key - Jabber Key Library
SYNOPSIS
========
Net::Jabber::Key is a module that provides a developer easy access
to generating, caching, and comparing keys.
DESCRIPTION
===========
Key.pm is a helper module for the Net::Jabber::Transport. When the
Transport talks to a Client it sends a key and expects to get that
key back from the Client. This module provides an API to generate,
cache, and then compare the key send from the Client.
Basic Functions
---------------
$Key = new Net::Jabber::Key();
$key = $Key->Generate();
$key = $Key->Create("bob\@jabber.org");
$test = $Key->Compare("bob\@jabber.org","some key");
METHODS
=======
Basic Functions
---------------
new(debug=>string, - creates the Key object. debug should
debugfh=>FileHandle, be set to the path for the debug
debuglevel=>integer) log to be written. If set to "stdout"
then the debug will go there. Also, you
can specify a filehandle that already
exists and use that. debuglevel controls
the amount of debug. 0 is none, 1 is
normal, 2 is all.
Generate() - returns a key in Digest SHA1 form based on the current
time and the PID.
Create(cacheString) - generates a key and caches it with the key
of cacheString. Create returns the key.
Compare(cacheString, - compares the key stored in the cache under
keyString) cacheString with the keyString. Returns 1
if they match, and 0 otherwise.
AUTHOR
======
By Ryan Eatmon in May of 2000 for http://jabber.org.
COPYRIGHT
=========
This module is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
File: pm.info, Node: Net/Jabber/Log, Next: Net/Jabber/Message, Prev: Net/Jabber/Key, Up: Module List
Jabber Log Module
*****************
NAME
====
Net::Jabber::Log - Jabber Log Module
SYNOPSIS
========
Net::Jabber::Log is a companion to the Net::Jabber module.
It provides the user a simple interface to set and retrieve all
parts of a Jabber Log.
DESCRIPTION
===========
To initialize the Log with a Jabber you must pass it the
XML::Parser Tree array. For example:
my $log = new Net::Jabber::Log(@tree);
There has been a change from the old way of handling the callbacks.
You no longer have to do the above, a Net::Jabber::Log object is passed
to the callback function for the log:
use Net::Jabber;
sub log {
my ($Log) = @_;
.
.
.
}
You now have access to all of the retrieval functions available.
To create a new log to send to the server:
use Net::Jabber;
$Log = new Net::Jabber::Log();
Now you can call the creation functions below to populate the tag before
sending it.
For more information about the array format being passed to the CallBack
please read the Net::Jabber::Client documentation.
Retrieval functions
-------------------
$from = $Log->GetFrom();
$fromJID = $Log->GetFrom("jid");
$type = $Log->GetType();
$data = $Log->GetData();
$str = $Log->GetXML();
@log = $Log->GetTree();
Creation functions
------------------
$Log->SetLog(type=>"error",
from=>"users.jabber.org",
data=>"The moon is full... I can't run anymore.");
$Log->SetFrom("foo.jabber.org");
$Log->SetType("warn");
$Log->SetData("I can't find a config file. Using defaults.");
Test functions
--------------
$test = $Log->DefinedFrom();
$test = $Log->DefinedType();
METHODS
=======
Retrieval functions
-------------------
GetFrom() - returns either a string with the Jabber Identifier,
GetFrom("jid") or a Net::Jabber::JID object for the person who
sent the . To get the JID object set
the string to "jid", otherwise leave blank for the
text string.
GetType() - returns a string with the type this is.
GetData() - returns a string with the cdata of the .
GetXML() - returns the XML string that represents the .
This is used by the Send() function in Client.pm to send
this object as a Jabber Log.
GetTree() - returns an array that contains the tag
in XML::Parser Tree format.
Creation functions
------------------
SetLog(from=>string|JID, - set multiple fields in the
type=>string, at one time. This is a cumulative
data=>string) and over writing action. If you set
the "from" attribute twice, the second
setting is what is used. If you set
the type, and then set the data
then both will be in the
tag. For valid settings read the
specific Set functions below.
SetFrom(string) - sets the from attribute. You can either pass a string
SetFrom(JID) or a JID object. They must be valid Jabber
Identifiers or the server will return an error log.
(ie. jabber:bob@jabber.org/Silent Bob, etc...)
SetType(string) - sets the type attribute. Valid settings are:
notice general logging
warn warning
alert critical error (can still run but not
correctly)
error fatal error (cannot run anymore)
SetData(string) - sets the cdata of the .
Test functions
--------------
DefinedFrom() - returns 1 if the from attribute is defined in the
, 0 otherwise.
DefinedType() - returns 1 if the type attribute is defined in the
, 0 otherwise.
AUTHOR
======
By Ryan Eatmon in May of 2000 for http://jabber.org..
COPYRIGHT
=========
This module is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
File: pm.info, Node: Net/Jabber/Message, Next: Net/Jabber/Presence, Prev: Net/Jabber/Log, Up: Module List
Jabber Message Module
*********************
NAME
====
Net::Jabber::Message - Jabber Message Module
SYNOPSIS
========
Net::Jabber::Message is a companion to the Net::Jabber module.
It provides the user a simple interface to set and retrieve all
parts of a Jabber Message.
DESCRIPTION
===========
To initialize the Message with a Jabber you must pass it the
XML::Parser Tree array. For example:
my $message = new Net::Jabber::Message(@tree);
There has been a change from the old way of handling the callbacks.
You no longer have to do the above, a Net::Jabber::Message object is
passed to the callback function for the message:
use Net::Jabber;
sub message {
my ($Mess) = @_;
.
.
.
}
You now have access to all of the retrieval functions available.
To create a new message to send to the server:
use Net::Jabber;
$Mess = new Net::Jabber::Message();
Now you can call the creation functions below to populate the tag before
sending it.
For more information about the array format being passed to the CallBack
please read the Net::Jabber::Client documentation.
Retrieval functions
-------------------
$to = $Mess->GetTo();
$toJID = $Mess->GetTo("jid");
$from = $Mess->GetFrom();
$fromJID = $Mess->GetFrom("jid");
$resource = $Mess->GetResource();
$type = $Mess->GetType();
$subject = $Mess->GetSubject();
$body = $Mess->GetBody();
@body = $Mess->GetBody("full");
$thread = $Mess->GetThread();
$priority = $Mess->GetPriority();
$error = $Mess->GetError();
$errCode = $Mess->GetErrorCode();
@xTags = $Mess->GetX();
@xTags = $Mess->GetX("my:namespace");
@xTrees = $Mess->GetXTrees();
@xTrees = $Mess->GetXTrees("my:namespace");
$str = $Mess->GetXML();
@message = $Mess->GetTree();
$date = $Mess->GetTimeStamp();
Creation functions
------------------
$Mess->SetMessage(TO=>"bob\@jabber.org/Working Bob",
Subject=>"Lunch",
BoDy=>"Let's go grab some lunch!",
priority=>100);
$Mess->SetTo("test\@jabber.org");
$Mess->SetFrom("me\@jabber.org");
$Mess->SetType("groupchat");
$Mess->SetSubject("This is a test");
$Mess->SetBody("This is a test of the emergency broadcast system...");
$Mess->SetThread("AE912B3");
$Mess->SetPriority(1);
$Mess->SetMessage(to=>"bob\@jabber.org",
errorcode=>403,
error=>"Permission Denied");
$Mess->SetErrorCode(403);
$Mess->SetError("Permission Denied");
$X = $Mess->NewX("jabber:x:delay");
$X = $Mess->NewX("my:namespace");
$X = $Mess->NewX(Net::Jabber::X::XXXXX);
$Reply = $Mess->Reply();
$Reply = $Mess->Reply(template=>"transport-filter");
Test functions
--------------
$test = $Mess->DefinedTo();
$test = $Mess->DefinedFrom();
$test = $Mess->DefinedType();
$test = $Mess->DefinedSubject();
$test = $Mess->DefinedBody();
$test = $Mess->DefinedThread();
$test = $Mess->DefinedPriority();
$test = $Mess->DefinedErrorCode();
$test = $Mess->DefinedError();
METHODS
=======
Retrieval functions
-------------------
GetTo() - returns either a string with the Jabber Identifier,
GetTo("jid") or a Net::Jabber::JID object for the person who is
going to receive the . To get the JID
object set the string to "jid", otherwise leave
blank for the text string.
GetFrom() - returns either a string with the Jabber Identifier,
GetFrom("jid") or a Net::Jabber::JID object for the person who
sent the . To get the JID object set
the string to "jid", otherwise leave blank for the
text string.
GetResource() - returns a string with the Jabber Resource of the
person who sent the .
GetType() - returns a string with the type this is.
GetSubject() - returns a string with the subject of the .
GetBody(string) - returns the data in the