develooper Front page | perl.perl5.porters | Postings from April 2008

Net::DIvert v 1.2: IO-1.2301, problem with 'divert' protocol not being handled by IO::Socket::INET

Thread Next
From:
Vivek M
Date:
April 26, 2008 02:34
Subject:
Net::DIvert v 1.2: IO-1.2301, problem with 'divert' protocol not being handled by IO::Socket::INET
Message ID:
120129.90955.qm@web58202.mail.re3.yahoo.com
Hello, I run Perl v5.8.8 on Debian Etch (custom kernel and iptables). The Divert.pm module line 109, should be modified to read:
$self->{SOCK} = IO::Socket::INET->new(LocalHost => $host,
                                                                                    LocalPort => $port,
                                                                                    Type => IO::Socket::SOCK_RAW,
                                                                                    Proto => "divert")
                                                                           or die "Can't bind : $@\n";


The reason is because 'divert' protocol is not handled by IO::Socket::INET (IO-1.2301). The sample script in Net::Divert b0rks with an "autoflush" error.

Please be warned that I am a total newbie to Perl & computers!! If it's been fixed in a later version, then my apologies - I did try to check via Google and by updating my IO module using CPAN (not my Perl v5.8).  I'm just playing with "divert" sockets in Perl  because my C is non-existent :p

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About