in reply to Net::IRC does not connect
I had similar problems here, using Net::IRC version 0.7.
After digging around a little in the code, I found that in Net::IRC::Connection, in the connect() sub, Symbol.pm's "gensym" method was used to create an anonymous glob, which then was turned into a socket (the code snippets you posted, plus a few more).
A little above this code, I found a commented section of code, that uses IO::Socket to create a socket.
Hope this helps.
P.S.: In my firewall logs I found out, that when I used the original Net::IRC, the irctest scripts tried to connect to the IRC-server with a local address of 127.0.0.1 - which of course can't work.
After digging around a little in the code, I found that in Net::IRC::Connection, in the connect() sub, Symbol.pm's "gensym" method was used to create an anonymous glob, which then was turned into a socket (the code snippets you posted, plus a few more).
A little above this code, I found a commented section of code, that uses IO::Socket to create a socket.
I took this code, commented out the rest, and voila - it worked. I have no idea, why the author of Net::IRC used the gensym() approach and not the IO::Socket way.$sock = IO::Socket::INET->new(PeerAddr => $self->server, PeerPort => $self->port, Proto => "tcp", );
Hope this helps.
P.S.: In my firewall logs I found out, that when I used the original Net::IRC, the irctest scripts tried to connect to the IRC-server with a local address of 127.0.0.1 - which of course can't work.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Net::IRC does not connect
by olly (Scribe) on Jul 31, 2001 at 16:14 UTC | |
by le (Friar) on Sep 01, 2001 at 14:17 UTC | |
by Anonymous Monk on Sep 14, 2001 at 04:56 UTC | |
by olly (Scribe) on Sep 02, 2001 at 03:50 UTC |
In Section
Seekers of Perl Wisdom