From: Thomas Hurst Date: 2001-12-26T23:43:46+09:00 Subject: [ruby-talk:29443] Re: Surprise (?) with sockets * Dave Thomas (Dave@PragmaticProgrammer.com) wrote: > Thomas Hurst writes: > > > And look, there's a bug in my fortune datafile. This, on top of two > > bugs in /.'s comment system, this misfeature in ruby, and the entry > > in Programming Ruby that mentions SOL_TCP but not IPPROTO_TCP, all > > found in the past 24 hours, and I've not even been IN most of the > > day. > > Explain the PR problem and I'll add it to the list. Is it that > IPROTO_TCP is always there, and SOL_TCP may not be, or is SOL_TCP just > plain wrong? SOL_TCP is defined only if it's defined by the OS headers, where as IPPROTO_TCP is defined always (as the value the OS provides if it's there, or hardcoded to a magic number if not), at least in 1.6.6. -- Thomas 'Freaky' Hurst - freaky@aagh.net - http://www.aagh.net/ - "Nondeterminism means never having to say you are wrong."