lib/socket.rb
#
# Sets socket nonblocking and reads up to given number of bytes.
#
# @todo   Should EWOULDBLOCK be passed unchanged? --rue
#
Sets socket nonblocking and reads up to given number of bytes.
Sets socket nonblocking and reads up to given number of bytes .
def recv_nonblock(bytes_to_read, flags = 0)
    fcntl Fcntl::F_SETFL, Fcntl::O_NONBLOCK
    recvfrom bytes_to_read, flags
  rescue Errno::EWOULDBLOCK
    raise Errno::EAGAIN
  end
def recv_nonblock ( bytes_to_read , flags = 0 ) fcntl Fcntl :: F_SETFL , Fcntl :: O_NONBLOCK recvfrom bytes_to_read , flags rescue Errno :: EWOULDBLOCK raise Errno :: EAGAIN end
Sets socket nonblocking and reads up to given number of bytes.
Sets socket nonblocking and reads up to given number of bytes .
bytes_to_read
<not_specific>
flags
<not_specific>
todo
Should EWOULDBLOCK be passed unchanged. --rue
Should EWOULDBLOCK be passed unchanged . -- rue