|
Posted by Uri Guttman on May 21, 2007, 4:13 pm
Please log in for more thread options
x> In the spirit of DWIM, shouldn't IO::Select->socketpair()
x> provide reasonable defaults for DOMAIN, TYPE, and PROTOCOL if it is
x> called with no arguments?
x> It seems like the vast majority of the time I see socketpair used,
x> it is with (AF_UNIX, SOCK_STREAM, PF_UNSPEC). Indeed, until recently I
x> didn't even know what they meant, it was just copy and paste by rote--which
x> I think makes them excellent candidates for being DWIMed away.
use pipe() instead as they are the same thing underneath these days in
at least unix flavors. $DEITY know what redmond does there.
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com --Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
|