[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

IPSocket class methods valid?, valid_v4? and valid_v6?

Gillett.Walter

4/18/2006 6:29:00 PM

Does anyone know why the IPSocket class methods valid?, valid_v4? and
valid_v6?
(defined in ipaddr.rb) not defined if the constant AF_INET6 is? This
seems backwards. The only reasonable way I have figured out to use
these methods is copy/paste, since they are effectively #ifdef'd out. I
see someone else asking this question a while back:


http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/948...

on the ruby-talk mailing list, but no answer.

-Walter