From: Luis Lavena Date: 2008-04-01T03:50:09+09:00 Subject: Re: sockets, windoze, and threads On Mar 31, 1:59 pm, ara howard wrote: > this works on *nix and might on windoze - i don't have a box near so > cannot test... can someone give it a whirl and/or patch it to work? > it should simply run forever: > > require 'socket' > > STDIN.sync = STDOUT.sync = STDERR.sync = true > > class IO > > windoze = RUBY_PLATFORM.include?('win32') > Ara, didn't test the code yep, but you should move away from win32 as platform matcher for Windows, at least, if you plan your code work with the upcoming one-click installer: http://blog.mmediasys.com/2008/03/29/progress-of-one-click-installer-rubyinstaller/ Will test it later and get back to you ;-) -- Luis Lavena