in reply to Re: IO::Socket::INET's sockaddr() returns 16 byte instead of 4, Socket::inet_ntoa() complains
in thread IO::Socket::INET's sockaddr() returns 16 byte instead of 4, Socket::inet_ntoa() complains

Hm, that's very verbose.

What I'm not getting is: IO::Socket::INET's doc says, "IO::Socket::INET provides an object interface to creating and using sockets in the AF_INET domain" but why is it still receiving AF_INET6 stuff?

There's also IO::Socket::INET6 maintained by Shlomi Fish.

So where should be the appropriate fix/patch placed? In HTTP::Daemon (e.g. creating a separate HTTP::Daemon6)? In IO::Socket::INET (always converts things to IPv4, so sockaddr() never returns 16 bytes)? In still-lower library? This IPv4/IPv6 dichotomy is quite confusing to me.

  • Comment on Re^2: IO::Socket::INET's sockaddr() returns 16 byte instead of 4, Socket::inet_ntoa() complains

Replies are listed 'Best First'.
Re^3: IO::Socket::INET's sockaddr() returns 16 byte instead of 4, Socket::inet_ntoa() complains
by Anonymous Monk on Feb 28, 2012 at 15:26 UTC
    You probably have installed package: ii libio-socket-inet6-perl 2.65-1.1 Object interface for AF_INET6 domain sockets uninstall "libio-socket-inet6-perl" package from system and it will work ! :-D
      Thanks! It does solve the problem. I'm linking this page to the RT ticket for reference.