class Ethon::Multi

This class represents libcurl multi.

def finalizer(multi)

Parameters:
  • multi (Multi) -- The multi to free.

Other tags:
    Example: Free multi. -
def finalizer(multi)
  proc {
    Curl.multi_cleanup(multi.handle)
  }
end

def handle

Returns:
  • (::FFI::Pointer) - The multi handle.

Other tags:
    Example: Return multi handle. -
def handle
  @handle ||= Curl.multi_init
end

def initialize

Returns:
  • (Multi) - The new multi.
def initialize
  Curl.init
  ObjectSpace.define_finalizer(self, self.class.finalizer(self))
  init_vars
end