From: Roger Pack Date: 2007-08-29T03:01:29+09:00 Subject: Re: Select Eder Qui捘ones wrote: > Hi, I'm working with sockets and I want to know when I'm able to send > and receive data, this is what I Have: > > def receiveableRightNow > r,w,e = select([@socket], nil, nil, 0) return !r.empty? # r is an array -- if it has @socket in it then @socket is able to receive end I think :) That's how I do it. If there's a better way like a built in function I dunno. -- Posted via http://www.ruby-forum.com/.