Ethon::Multi::Options

This module contains the logic and knowledge about the available options on multi.

Public Instance Methods

maxconnects=(value) click to toggle source

Sets maxconnects option.

@example Set maxconnects option.

easy.maxconnects = $value

@param [ String ] value The value to set.

@return [ void ]

# File lib/ethon/multi/options.rb, line 16
def maxconnects=(value)
  Curl.set_option(:maxconnects, value_for(value, :int), handle)
end
pipelining=(value) click to toggle source

Sets pipelining option.

@example Set pipelining option.

easy.pipelining = $value

@param [ String ] value The value to set.

@return [ void ]

# File lib/ethon/multi/options.rb, line 28
def pipelining=(value)
  Curl.set_option(:pipelining, value_for(value, :bool), handle)
end
socketdata=(value) click to toggle source

Sets socketdata option.

@example Set socketdata option.

easy.socketdata = $value

@param [ String ] value The value to set.

@return [ void ]

# File lib/ethon/multi/options.rb, line 40
def socketdata=(value)
  Curl.set_option(:socketdata, value_for(value, :string), handle)
end
socketfunction=(value) click to toggle source

Sets socketfunction option.

@example Set socketfunction option.

easy.socketfunction = $value

@param [ String ] value The value to set.

@return [ void ]

# File lib/ethon/multi/options.rb, line 52
def socketfunction=(value)
  Curl.set_option(:socketfunction, value_for(value, :string), handle)
end
timerdata=(value) click to toggle source

Sets timerdata option.

@example Set timerdata option.

easy.timerdata = $value

@param [ String ] value The value to set.

@return [ void ]

# File lib/ethon/multi/options.rb, line 64
def timerdata=(value)
  Curl.set_option(:timerdata, value_for(value, :string), handle)
end
timerfunction=(value) click to toggle source

Sets timerfunction option.

@example Set timerfunction option.

easy.timerfunction = $value

@param [ String ] value The value to set.

@return [ void ]

# File lib/ethon/multi/options.rb, line 76
def timerfunction=(value)
  Curl.set_option(:timerfunction, value_for(value, :string), handle)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.