From: "U.Nakamura" Date: 2011-01-14T13:03:47+09:00 Subject: [ruby-core:34484] Re: Windows sockets and CRT fds Hello, In message "[ruby-core:34483] Windows sockets and CRT fds" on Jan.14,2011 12:27:48, wrote: > My question is; why does Ruby go through all this trouble on Windows? > Why not pass around and work with SOCKET handles instead? Because, if do so, we must rewrite all ruby core functions and extensions which expect that socket is a kind of file descriptor. About mysql2 gem, it should know how MySQL treats Windows SOCKETs and how Ruby treats them. And it should fill in the gap. It's the work of wrapper library. Regards, -- U.Nakamura