Subject: | Request: more TCP_* macros |
Date: | Sat, 28 Jul 2012 03:04:57 -0400 |
To: | bug-Socket [...] rt.cpan.org |
From: | "Daniel Macks" <dmacks [...] netspace.org> |
AnyEvent-7.01 looks for a bunch of Socket::TCP_* macros, providing hardcoded fallback assumptions if they are not found. Some of them are not. It would be helpful from a portability standpoint if Socket supplied them so we get the actual platform "correct" (from .h) values. I'm on OS X, where AnyEvent is looking for the following non-provided macros: TCP_NOPUSH, TCP_NOOPT, TCP_CONNECTIONTIMEOUT. I do see them in my /usr/include/netinet/tcp.h (at least as of OS X 10.6, not sure how far back they were initially provided), so it doesn't seem like it would be hard to add them to the Socket::* set.
The full Socket::* macro detection for all platforms is in the table at the end of http://cpansearch.perl.org/src/MLEHMANN/AnyEvent-7.01/constants.pl.PL
dan
--
Daniel Macks
dmacks@netspace.org