module Ethon::Multi::Operations

def check

Returns:
  • (void) -

Other tags:
    Example: Check. -
def check
  msgs_left = ::FFI::MemoryPointer.new(:int)
  while true
    msg = Curl.multi_info_read(handle, msgs_left)
    break if msg.null?
    next if msg[:code] != :done
    easy = easy_handles.find{ |e| e.handle == msg[:easy_handle] }
    easy.return_code = msg[:data][:code]
    Ethon.logger.debug { "ETHON:         performed #{easy.log_inspect}" }
    delete(easy)
    easy.complete
  end
end