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

Instance Method Details

#max_total_connections=(value) ⇒ void

This method returns an undefined value.

Sets max_total_connections option.

Examples:

Set max_total_connections option.

easy.max_total_conections = $value

Parameters:

  • value (String)

    The value to set.



16
17
18
# File 'lib/ethon/multi/options.rb', line 16

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.

Examples:

Set maxconnects option.

easy.maxconnects = $value

Parameters:

  • value (String)

    The value to set.



28
29
30
# File 'lib/ethon/multi/options.rb', line 28

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.

Examples:

Set pipelining option.

easy.pipelining = $value

Parameters:

  • value (String)

    The value to set.



40
41
42
# File 'lib/ethon/multi/options.rb', line 40

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.

Examples:

Set socketdata option.

easy.socketdata = $value

Parameters:

  • value (String)

    The value to set.



52
53
54
# File 'lib/ethon/multi/options.rb', line 52

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.

Examples:

Set socketfunction option.

easy.socketfunction = $value

Parameters:

  • value (String)

    The value to set.



64
65
66
# File 'lib/ethon/multi/options.rb', line 64

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.

Examples:

Set timerdata option.

easy.timerdata = $value

Parameters:

  • value (String)

    The value to set.



76
77
78
# File 'lib/ethon/multi/options.rb', line 76

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.

Examples:

Set timerfunction option.

easy.timerfunction = $value

Parameters:

  • value (String)

    The value to set.



88
89
90
# File 'lib/ethon/multi/options.rb', line 88

def timerfunction=(value)
  Curl.set_option(:timerfunction, value_for(value, :string), handle, :multi)
end