Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Paul Evans via RT <bug-IO <at> rt.cpan.org>
Subject: [rt.cpan.org #61577] ->sockdomain and ->socktype undefined on newly ->accept'ed sockets
Newsgroups: gmane.comp.lang.perl.perl5.porters
Date: Tuesday 14th February 2012 15:22:41 UTC (over 4 years ago)
https://rt.cpan.org/Ticket/Display.html?id=61577
>

I'm a little bit worried about this change.

In my experience, SO_DOMAIN is far from reliable across platforms. Also, 
some operating systems omit it entirely but have instead an SO_FAMILY 
that does the same thing. (I've yet to meet an OS that had both, 
however).

I think it's OK to optimistically /try/ to fill in the object slots using 
SO_DOMAIN/FAMILY/TYPE/PROTOCOL, but don't rely on them to necessarily 
yield an answer.


-- 

Paul Evans
 
CD: 25ms