POE::Component::OSCAR

POE::Component::OSCAR is a POE component for the Net::OSCAR module.
Download

POE::Component::OSCAR Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Dan McCormick
  • Publisher web site:
  • http://search.cpan.org/~dmcc/POE-Component-OSCAR-0.05/lib/POE/Component/OSCAR.pm

POE::Component::OSCAR Tags


POE::Component::OSCAR Description

POE::Component::OSCAR is a POE component for the Net::OSCAR module. POE::Component::OSCAR is a POE component for the Net::OSCAR module.SYNOPSISuse POE qw(Component::OSCAR);sub _start { # start an OSCAR session $oscar = POE::Component::OSCAR->new(); # start an OSCAR session with automatic throttling of new connections # to prevent being banned by the server $oscar = POE::Component::OSCAR->new( throttle => 4 ); # set up the "im_in" callback to call your state, "im_in_state" $oscar->set_callback( im_in => 'im_in_state'); # it's good to detect errors if you don't want to get banned $oscar->set_callback( error => 'error_state' ); $oscar->set_callback( admin_error => 'admin_erro_stater' ); $oscar->set_callback( rate_alert => 'rate_alert_state' ); # sign on $oscar->signon( screenname => $MY_SCREENNAME, password => $MY_PASSWORD );}sub im_in_state { my ($nothing, $args) = @_; my ($object, $who, $what, $away) = @$args; print "Got '$what' from $whon";} Requirements: · Perl


POE::Component::OSCAR Related Software