Class: PacketGen::Header::SCTP::UnresolvableAddressError

Inherits:
Object
  • Object
show all
Includes:
ErrorMixin
Defined in:
lib/packetgen/header/sctp/error.rb

Overview

Out of ressource error. Indicates that the sender is out of resource.

Author:

  • Sylvain Daubert

Since:

  • 3.4.0

Instance Method Summary collapse

Methods included from ErrorMixin

#error_name

Methods included from Padded32

#padded?, #to_s

Instance Method Details

#to_human::String

Returns:

  • (::String)

Since:

  • 3.4.0



199
200
201
# File 'lib/packetgen/header/sctp/error.rb', line 199

def to_human
  "<#{error_name}: #{self[:value].to_human}>"
end

#value=(val) ⇒ ParameterMixin

Set value by accepting ParameterMixin classes.

Parameters:

Returns:

Since:

  • 3.4.0



188
189
190
191
192
193
194
195
196
# File 'lib/packetgen/header/sctp/error.rb', line 188

def value=(val)
  if val.is_a?(ParameterMixin)
    self[:value] = val
    calc_length
    val
  else
    super
  end
end