Module: Ethon::Multi::Options
- Included in:
- Ethon::Multi
- Defined in:
- lib/ethon/multi/options.rb
Overview
This module contains the logic and knowledge about the available options on multi.
Instance Method Summary collapse
-
#max_total_connections=(value) ⇒ void
Sets max_total_connections option.
-
#maxconnects=(value) ⇒ void
Sets maxconnects option.
-
#pipelining=(value) ⇒ void
Sets pipelining option.
-
#socketdata=(value) ⇒ void
Sets socketdata option.
-
#socketfunction=(value) ⇒ void
Sets socketfunction option.
-
#timerdata=(value) ⇒ void
Sets timerdata option.
-
#timerfunction=(value) ⇒ void
Sets timerfunction option.
Instance Method Details
#max_total_connections=(value) ⇒ void
This method returns an undefined value.
Sets max_total_connections option.
17 18 19 |
# File 'lib/ethon/multi/options.rb', line 17 def max_total_connections=(value) Curl.set_option(:max_total_connections, value_for(value, :int), handle, :multi) end |
#maxconnects=(value) ⇒ void
This method returns an undefined value.
Sets maxconnects option.
29 30 31 |
# File 'lib/ethon/multi/options.rb', line 29 def maxconnects=(value) Curl.set_option(:maxconnects, value_for(value, :int), handle, :multi) end |
#pipelining=(value) ⇒ void
This method returns an undefined value.
Sets pipelining option.
41 42 43 |
# File 'lib/ethon/multi/options.rb', line 41 def pipelining=(value) Curl.set_option(:pipelining, value_for(value, :int), handle, :multi) end |
#socketdata=(value) ⇒ void
This method returns an undefined value.
Sets socketdata option.
53 54 55 |
# File 'lib/ethon/multi/options.rb', line 53 def socketdata=(value) Curl.set_option(:socketdata, value_for(value, :string), handle, :multi) end |
#socketfunction=(value) ⇒ void
This method returns an undefined value.
Sets socketfunction option.
65 66 67 |
# File 'lib/ethon/multi/options.rb', line 65 def socketfunction=(value) Curl.set_option(:socketfunction, value_for(value, :string), handle, :multi) end |
#timerdata=(value) ⇒ void
This method returns an undefined value.
Sets timerdata option.
77 78 79 |
# File 'lib/ethon/multi/options.rb', line 77 def timerdata=(value) Curl.set_option(:timerdata, value_for(value, :string), handle, :multi) end |
#timerfunction=(value) ⇒ void
This method returns an undefined value.
Sets timerfunction option.
89 90 91 |
# File 'lib/ethon/multi/options.rb', line 89 def timerfunction=(value) Curl.set_option(:timerfunction, value_for(value, :string), handle, :multi) end |