Re: Problem signing on to AIM with Net::AOLIM
- From: "J. Gleixner" <glex_no-spam@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 10 Oct 2005 14:39:03 -0500
Rick Sanders wrote:
I am having trouble getting my script to sign onto to the AOL Instant Messenger server. Using the example in the Net::AOLIM script I get $IM_ERR =6 ("login timeout"). I am able to telnet to the AOL login server port (login.oscar.aol.com port 5198) and it responds so it's not a firewall problem. I have tried this from both Windows XP and Solaris with the same results.
Here is the code I am using. I would be grateful if someone could point out what I am doing wrong. Thanks.
-Rick
#!/usr/bin/perl -w
use Net::AOLIM; use Strict;
Post real code.
$user = 'my name'; $pass = 'my password'; $aim = Net::AOLIM->new( 'username' => $user, 'password' => $pass, 'login_timeout' => 5, 'callback' => \&handler ); $aim->signon;
Check if this failed, before setting error. unless ( $aim->signon ) {
$error = $Net::AOLIM::ERROR_MSGS{$IM_ERR};
print "signon status $error\n";
}
exit;
Not needed.
sub handler {
print STDOUT "This is the handler\n"; exit; }
Maybe you need to set the server? Never used it, however a quick read through the documentation shows the default server as:
'server' => servername (default toc.oscar.aol.com)
That server and the 'login.oscar.aol.com', you refer to, are two different IPs.
.
- Follow-Ups:
- Re: Problem signing on to AIM with Net::AOLIM
- From: Rick Sanders
- Re: Problem signing on to AIM with Net::AOLIM
- Prev by Date: Re: Killer on the loose.
- Next by Date: Re: Perl LWP, logging into yahoo etc ?
- Previous by thread: Re: How to replace string in a HTML file ??
- Next by thread: Re: Problem signing on to AIM with Net::AOLIM
- Index(es):
Relevant Pages
|