Net::CLI::Transport::XMPP

Net::CLI::Transport::XMPP is a xmpp transport for Net::CLI.
Download

Net::CLI::Transport::XMPP Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Eric Hacker
  • Publisher web site:
  • http://search.cpan.org/~hacker/Agent-TCLI-0.02/lib/Agent/TCLI/Transport/Test/Testee.pm

Net::CLI::Transport::XMPP Tags


Net::CLI::Transport::XMPP Description

Net::CLI::Transport::XMPP is a xmpp transport for Net::CLI. Net::CLI::Transport::XMPP is a xmpp transport for Net::CLI.ATTRIBUTESThe following attributes are accessible through standard accessor/mutator methods and may be set as a parameter to new unless otherwise noted.jidxmpp id of user we're connecting as' set_jid will only accept SCALAR type values.jserverjserver will only accept SCALAR type values.jpasswordThe password for the transport to use to log in to the server. jpassword will only accept scalar type values.xmpp_debugSets the debug (verbosity) level for the XMPP librariesxmpp_process_timeSets the time in seconds to wait before calling XMPP Process to look for more XMPP data. Defaults to 1 and shouldn't be much larger.peersAn array of peers set_peers will only accept ARRAYREF type values.connection_retriesA max number to retry connection before giving up. connection_retries will only accept NUMERIC type values.connection_delayHow long to wait beteen connection attempts when failed. Defaults to 30 seconds. connection_delay will only accept NUMERIC type values.rosterHolds the Net::XMPP::Roster if enabled. To enable the roster, a paramater of 'roster' => 1, must be passed in with new. roster will contain a Net::XMPP::Roster object after initialization if enabled.server_timeThe time at the server. Useful for determining if messages were sent before we started up. server_time should only contain hash values.group_modeThe default setting to determine how to interact with groups. Options are: 'all' - process everything said in room 'named' - process only when called by name: (name followed by colon). 'log' - don't listen to anything, but log events there (which ones?) 'prefixed' - named + anything beginning with a designated prefix character group_mode should only contain scalar values.group_prefixThe group_prefix used for group moded prefixed. group_prefix should only contain a single scalar value.METHODSstartGet things rolling. Starts up a POE::Component::Jabber::Client using the user provided config info.stopMostly just a placeholder.shutdownForcibly shutdownJoinPeerRoomsThis POE event handler will go through each of the users in the peers array, and if the peers is a groupchat, join the conference room. It will check to make sure it is not already conencted (though this could be buggy). It does not take any arguments.Process ( )This event interfaces with the XMPP Process to have it check for new datasend_presenceSends a xmpp presence message. See Net::XMPP::Presence for parameter details.send_messageSends a xmpp message for a control. Takes the thread and the messaage as parameters. It will overwrite the control->send attribute text with the message parameter.GetControlForNode ( node )Determines the control from a node and returns the control object.Takes a node parameter and returns the hash key to the proper control object in the controls array. If the control object is not in the array, it will add it.When a new control object is created, a new Control session must be started for the control and that is handled here as well.PeersThis POE event handler performs the transport end of the peer manipulation commands, such as add peer. It takes an action, a User object and an optional Request object as arguments.Valid actions are add and delete. Currently delete does not force a log off from a chatroom, but it might if I fix that and forget to update the docs.Requirements:· Perl Requirements: · Perl


Net::CLI::Transport::XMPP Related Software