|Just another Perl shrine|
RFC: Net::XMPP::Client::GTalkby tmharish (Friar)
|on Jan 18, 2013 at 12:20 UTC||Need Help??|
The module Net::XMPP::Client::GTalk is aimed at providing an easy to use wrapper around NET::XMPP class of modules for specific use with GTalk.
Although the majority of this can be achieved through Net::XMPP::Client there are several parameters that need to be fixed and it took me a good hour and half just to get the basics to work, which IMHO is too long.
Additionally Net::XMPP::Client provides call back functions which ( again IMHO ) is confusing/counter-intuitive/unnecessary in synchronous programs - And these are not just additional provisions but requirements.
There are also sections ( such as checking if a buddy is online ) that do not work and this module provides for a workaround.
Additionally Net::XMPP::Client::GTalk provides direct access to the NET::XMPP connection object, so all functions of the NET::XMPP class of modules.Example ( from module POD ):
This example connects to GTalk and waits for a chat message from someone. It replies to that person with the chat message that it received. Additionally it will dump online buddies at regular intervals along with the contents of the message it receives.
You can quit this program by sending it the chat message 'exit'.
I have contacted the author of Net::XMPP as I am adding to his/her namespace
Would greatly appreciate any kind of feedback!
Update: This module is now on CPAN here