POE::Component::OSCAR 0.05

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

SYNOPSIS

use POE qw(Component::OSCAR);

[ ... POE set up ... ]

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) = @_[ARG0..$#_]; my ($object, $who, $what, $away) = @$args;
print "Got '$what' from $whon";
}

last updated on:
April 18th, 2007, 18:05 GMT
price:
FREE!
homepage:
search.cpan.org
license type:
Perl Artistic License 
developed by:
Dan McCormick
category:
ROOT \ System
POE::Component::OSCAR
Download Button

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT