POE::Component::Proxy::MSN is a POE Component that is an MSN Messenger proxy.
SYNOPSIS
use POE qw(Component::Proxy::MSN);
# spawn MSN session
POE::Component::Proxy::MSN->spawn(
alias => 'msnproxy', # Optional, default
ip => 'any', # Optional, ip to bind to or any (default)
port => 1863, # Optional, default
msn_server => '207.46.106.79', # Server to connect to, not optional
msn_port => 1863, # Just leave this at 1863, not optional
);
# register your session as MSN proxy observer in _start of a new session
POE::Session->create(
inline_states => {
_start => sub {
$_[KERNEL]->post(msnproxy => 'register');
}
msn_logged_in => sub {
my ($kernel, $cmd) = @_[KERNEL, ARG0];
# tell them they are on the proxy, this is called when they log in
if ($cmd->{data} =~ m/(S+@S+)/) {
$kernel->post(msnproxy => toast => {
text => "MSN Proxy Active",
site_url => 'http://teknikill.net/?MSNProxy',
action_url => '/',
options_url => '/',
# not speciying email will toast all users
email => $1, # email targets a specific user that is logged in
});
}
},
}
);
$poe_kernel->run;
POE::Component::Proxy::MSN is a POE component that proxys the MSN Messenger service and allows you to send your own notifications (toasts).
Requirements:
· Perl
Product's homepage
Requirements:
· Perl