AnyEvent::Socket::getprotobyname()

Marc Lehmann schmorp at schmorp.de
Tue Feb 15 10:54:13 CET 2011


On Mon, Feb 14, 2011 at 10:16:39PM -0800, gleeco <gleeco at gmail.com> wrote:
> full disclosure - still hacking but had to change the usage (ie.
> import-overkill) -g

this patch has more problems:

> > use Socket qw(:all);

"import overkill" is not really acceptable for anyevent, which strives to stay
somewhat lean. it will also not fix anything or help anything:

> > $PROTO_BYNAME{tcp}  = Socket::IPPROTO_TCP () if defined Socket::IPPROTO_TCP;

whether you import these symbols or not will not really fix the issues
with this line.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the anyevent mailing list