lib/ethon/multi/options.rb in ethon-0.6.1 vs lib/ethon/multi/options.rb in ethon-0.6.2

- old
+ new

@@ -12,11 +12,11 @@ # # @param [ String ] value The value to set. # # @return [ void ] def maxconnects=(value) - Curl.set_option(:maxconnects, value_for(value, :int), handle) + Curl.set_option(:maxconnects, value_for(value, :int), handle, :multi) end # Sets pipelining option. # # @example Set pipelining option. @@ -24,11 +24,11 @@ # # @param [ String ] value The value to set. # # @return [ void ] def pipelining=(value) - Curl.set_option(:pipelining, value_for(value, :bool), handle) + Curl.set_option(:pipelining, value_for(value, :bool), handle, :multi) end # Sets socketdata option. # # @example Set socketdata option. @@ -36,11 +36,11 @@ # # @param [ String ] value The value to set. # # @return [ void ] def socketdata=(value) - Curl.set_option(:socketdata, value_for(value, :string), handle) + Curl.set_option(:socketdata, value_for(value, :string), handle, :multi) end # Sets socketfunction option. # # @example Set socketfunction option. @@ -48,11 +48,11 @@ # # @param [ String ] value The value to set. # # @return [ void ] def socketfunction=(value) - Curl.set_option(:socketfunction, value_for(value, :string), handle) + Curl.set_option(:socketfunction, value_for(value, :string), handle, :multi) end # Sets timerdata option. # # @example Set timerdata option. @@ -60,11 +60,11 @@ # # @param [ String ] value The value to set. # # @return [ void ] def timerdata=(value) - Curl.set_option(:timerdata, value_for(value, :string), handle) + Curl.set_option(:timerdata, value_for(value, :string), handle, :multi) end # Sets timerfunction option. # # @example Set timerfunction option. @@ -72,10 +72,10 @@ # # @param [ String ] value The value to set. # # @return [ void ] def timerfunction=(value) - Curl.set_option(:timerfunction, value_for(value, :string), handle) + Curl.set_option(:timerfunction, value_for(value, :string), handle, :multi) end private # Return the value to set to multi handle. It is converted with the help