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 receive
  select(nil, [@socket], nil, 0)
end

def send
  select([@socket], nil, nil, 0)
end

Anyone knows how to improve this?.
-- 
Posted via http://www.ruby-forum.com/.