module Ethon::Multi::Options
def max_total_connections=(value)
-
(void)
-
Parameters:
-
value
(String
) -- The value to set.
Other tags:
- Example: Set max_total_connections option. -
def max_total_connections=(value) Curl.set_option(:max_total_connections, value_for(value, :int), handle, :multi) end
def maxconnects=(value)
-
(void)
-
Parameters:
-
value
(String
) -- The value to set.
Other tags:
- Example: Set maxconnects option. -
def maxconnects=(value) Curl.set_option(:maxconnects, value_for(value, :int), handle, :multi) end
def pipelining=(value)
-
(void)
-
Parameters:
-
value
(String
) -- The value to set.
Other tags:
- Example: Set pipelining option. -
def pipelining=(value) Curl.set_option(:pipelining, value_for(value, :int), handle, :multi) end
def socketdata=(value)
-
(void)
-
Parameters:
-
value
(String
) -- The value to set.
Other tags:
- Example: Set socketdata option. -
def socketdata=(value) Curl.set_option(:socketdata, value_for(value, :string), handle, :multi) end
def socketfunction=(value)
-
(void)
-
Parameters:
-
value
(String
) -- The value to set.
Other tags:
- Example: Set socketfunction option. -
def socketfunction=(value) Curl.set_option(:socketfunction, value_for(value, :string), handle, :multi) end
def timerdata=(value)
-
(void)
-
Parameters:
-
value
(String
) -- The value to set.
Other tags:
- Example: Set timerdata option. -
def timerdata=(value) Curl.set_option(:timerdata, value_for(value, :string), handle, :multi) end
def timerfunction=(value)
-
(void)
-
Parameters:
-
value
(String
) -- The value to set.
Other tags:
- Example: Set timerfunction option. -
def timerfunction=(value) Curl.set_option(:timerfunction, value_for(value, :string), handle, :multi) end
def value_for(value, type, option = nil)
-
(Object)
- The casted value.
Other tags:
- Example: Return casted the value. -
def value_for(value, type, option = nil) return nil if value.nil? if type == :bool value ? 1 : 0 elsif type == :int value.to_i elsif value.is_a?(String) Ethon::Easy::Util.escape_zero_byte(value) else value end end