For Programmers: Free Programming Magazines  


Home > Archive > PERL POE > June 2005 > bug in PoCoServer::TCP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author bug in PoCoServer::TCP
Andrew A. Chen

2005-06-09, 4:00 am

On line 89, inet_aton is called:

if (!defined $address && defined $hname) {
$address = inet_aton($hname);
}

but inet_aton isn't imported in the Socket use line:

use Socket qw(INADDR_ANY inet_ntoa AF_UNIX PF_UNIX);

You end up with this when trying to pass a hostname to the Hostname
parameter:

Undefined subroutine &POE::Component::Server::TCP::inet_aton called at
/usr/lib/perl5/site_perl/POE/Component/Server/TCP.pm line 88.
Apocalypse

2005-06-09, 4:00 am

Thanks again! It's fixed in CVS, Rocco has been smoothing things out for
a new release, so expect it soon :)

--
Apocalypse

Homepage: http://JiNxEdStAr.0ne.us
IRC: Apocalypse@irc.perl.org
IRC: Apocalypse@irc.freenode.net
Perl Stuff: http://search.cpan.org/~APOCAL/

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com