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
-
#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
#maxconnects=(value) ⇒ void
This method returns an undefined value.
Sets maxconnects option.
16 17 18 |
# File 'lib/ethon/multi/options.rb', line 16 def maxconnects=(value) Curl.set_option(:maxconnects, value_for(value, :int), handle) end |
#pipelining=(value) ⇒ void
This method returns an undefined value.
Sets pipelining option.
28 29 30 |
# File 'lib/ethon/multi/options.rb', line 28 def pipelining=(value) Curl.set_option(:pipelining, value_for(value, :bool), handle) end |
#socketdata=(value) ⇒ void
This method returns an undefined value.
Sets socketdata option.
40 41 42 |
# File 'lib/ethon/multi/options.rb', line 40 def socketdata=(value) Curl.set_option(:socketdata, value_for(value, :string), handle) end |
#socketfunction=(value) ⇒ void
This method returns an undefined value.
Sets socketfunction option.
52 53 54 |
# File 'lib/ethon/multi/options.rb', line 52 def socketfunction=(value) Curl.set_option(:socketfunction, value_for(value, :string), handle) end |
#timerdata=(value) ⇒ void
This method returns an undefined value.
Sets timerdata option.
64 65 66 |
# File 'lib/ethon/multi/options.rb', line 64 def timerdata=(value) Curl.set_option(:timerdata, value_for(value, :string), handle) end |
#timerfunction=(value) ⇒ void
This method returns an undefined value.
Sets timerfunction option.
76 77 78 |
# File 'lib/ethon/multi/options.rb', line 76 def timerfunction=(value) Curl.set_option(:timerfunction, value_for(value, :string), handle) end |