Class: Quic::Settings

Inherits:
Data
  • Object
show all
Defined in:
lib/quic/settings.rb,
lib/quic/settings.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#alpnObject (readonly)

Returns the value of attribute alpn

Returns:

  • (Object)

    the current value of alpn



4
5
6
# File 'lib/quic/settings.rb', line 4

def alpn
  @alpn
end

#cc_algoObject (readonly)

Returns the value of attribute cc_algo

Returns:

  • (Object)

    the current value of cc_algo



4
5
6
# File 'lib/quic/settings.rb', line 4

def cc_algo
  @cc_algo
end

#handshake_timeoutObject (readonly)

Returns the value of attribute handshake_timeout

Returns:

  • (Object)

    the current value of handshake_timeout



4
5
6
# File 'lib/quic/settings.rb', line 4

def handshake_timeout
  @handshake_timeout
end

#initial_rttObject (readonly)

Returns the value of attribute initial_rtt

Returns:

  • (Object)

    the current value of initial_rtt



4
5
6
# File 'lib/quic/settings.rb', line 4

def initial_rtt
  @initial_rtt
end

#max_stream_windowObject (readonly)

Returns the value of attribute max_stream_window

Returns:

  • (Object)

    the current value of max_stream_window



4
5
6
# File 'lib/quic/settings.rb', line 4

def max_stream_window
  @max_stream_window
end

#max_windowObject (readonly)

Returns the value of attribute max_window

Returns:

  • (Object)

    the current value of max_window



4
5
6
# File 'lib/quic/settings.rb', line 4

def max_window
  @max_window
end

#no_pmtudObject (readonly)

Returns the value of attribute no_pmtud

Returns:

  • (Object)

    the current value of no_pmtud



4
5
6
# File 'lib/quic/settings.rb', line 4

def no_pmtud
  @no_pmtud
end

Class Method Details

.defaultObject



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/quic/settings.rb', line 15

def self.default
  new(
    cc_algo: :cubic,
    initial_rtt: 333_000_000,
    max_window: 0,
    max_stream_window: 0,
    handshake_timeout: 10_000_000_000,
    no_pmtud: false,
    alpn: []
  )
end