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.

multi.max_total_conections = $value

Parameters:

  • value (String)

    The value to set.


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.

Examples:

Set maxconnects option.

multi.maxconnects = $value

Parameters:

  • value (String)

    The value to set.


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.

Examples:

Set pipelining option.

multi.pipelining = $value

Parameters:

  • value (String)

    The value to set.


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.

Examples:

Set socketdata option.

multi.socketdata = $value

Parameters:

  • value (String)

    The value to set.


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.

Examples:

Set socketfunction option.

multi.socketfunction = $value

Parameters:

  • value (String)

    The value to set.


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.

Examples:

Set timerdata option.

multi.timerdata = $value

Parameters:

  • value (String)

    The value to set.


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.

Examples:

Set timerfunction option.

multi.timerfunction = $value

Parameters:

  • value (String)

    The value to set.


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