Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Any one using Net-YahooMessenger ?

by dba (Monk)
on Jun 22, 2004 at 23:44 UTC ( [id://368895]=perlquestion: print w/replies, xml ) Need Help??

dba has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks,
I have installed Net::YahooMessenger module and tried to run the sample code and it fails with the error message:
Unknown error at E:/perl/site/lib/Net/YahooMessenger.pm line 309.

Code:
use Net::YahooMessenger; use strict; my $yahoo = Net::YahooMessenger->new; $yahoo->id('user1'); $yahoo->password('password1'); $yahoo->login or die "Can't login Yahoo!Messenger"; $yahoo->send('user2', 'Hello World!');
Line 309 corresponds to a new IO socket connection
Thanks,
dba

Replies are listed 'Best First'.
Re: Any one using Net-YahooMessenger ?
by Ido (Hermit) on Jun 23, 2004 at 01:21 UTC
    It appears that the default hostname is invalid and does not accept connections. Try replacing line 4 with:
    my $yahoo = Net::YahooMessenger->new(hostname=>'cs54.msg.dcn.yahoo.co +m');
      Thanks Ido.
      With inspiration from your post, I tried the hostname you mentioned. It failed at   $yahoo->login or die "Can't login Yahoo!Messenger";
      I scanned the registry under Yahoo IM and found the entry for hostname as  'scs.msg.yahoo.com' However, it still fails to login, although it makes  Net::YahooMessenger->new connection.
      Note:
      Iam able to login with the same userid/password from actual yahoo messenger client.
Re: Any one using Net-YahooMessenger ?
by bibo (Pilgrim) on Jun 23, 2004 at 02:59 UTC
    Well, I looked a bit at CPAN. There was another YIM module, Net::YMSG which appeared to be incredibly similar to the Net::YahooMessenger which you found. It appears to be languishing a bit, and it seems to me there have been protocol changes in the last couple years. The problem might not be your code?

    It's not what you asked for, but have you considered Jabber instead? It is an open protocol with both client and server code available in Perl. You could look at Net::Jabber::Client for client code, or check out the big picture at jabber.org

    good luck! --bibo

      bibo,
      I tried Net::YMSG too, but it also fails at the same place ...
      Thanks,
      dba

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://368895]
Approved by sgifford
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-20 02:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found