class Ethon::Multi
This class represents libcurl multi.
def finalizer(multi)
-
multi
(Multi
) -- The multi to free.
Other tags:
- Example: Free multi. -
def finalizer(multi) proc { Curl.multi_cleanup(multi.handle) } end
def handle
-
(::FFI::Pointer)
- The multi handle.
Other tags:
- Example: Return multi handle. -
def handle @handle ||= Curl.multi_init end
def initialize
-
(Multi)
- The new multi.
def initialize Curl.init ObjectSpace.define_finalizer(self, self.class.finalizer(self)) init_vars end