lib/zklib/helper.rb
def receive_nonblock(options)
      return options[:socket].recvfrom_nonblock(USHRT_MAX)
    rescue IO::WaitReadable
      IO.select([options[:socket]])

      retry
    end
# Receive data from non-blocking socket
#
# param  options
#        |_ socket  Socket to receive data from
Receive data from non-blocking socket
param  options
|_ socket  Socket to receive data from
Receive data from non - blocking socket param options |_ socket Socket to receive data from
def receive_nonblock(options)
      return options[:socket].recvfrom_nonblock(USHRT_MAX)
    rescue IO::WaitReadable
      IO.select([options[:socket]])
      retry
    end
def receive_nonblock ( options ) return options [ :socket ] . recvfrom_nonblock ( USHRT_MAX ) rescue IO :: WaitReadable IO . select ( [ options [ :socket ] ] ) retry end
Receive data from non-blocking socket
param  options
|_ socket  Socket to receive data from
Receive data from non - blocking socket param options |_ socket Socket to receive data from
options