Class Racket::L4::IGMPv2
In: lib/racket/l4/igmpv2.rb  (CVS)
Parent: RacketPart

Internet Group Management Protocol, Version 2: IGMPv2

RFC2236 (www.faqs.org/rfcs/rfc2236.html)

Methods

checksum!   checksum?   fix!  

Attributes

checksum    Checksum
gaddr    Group Address
payload    Payload
time    Max Response Time
type    Type

Public Instance methods

Set the checksum of this IGMPv2 message

[Source]

# File lib/racket/l4/igmpv2.rb, line 51
  def checksum!
    self.checksum = compute_checksum
  end

Is the checksum of this IGMPv2 message correct

[Source]

# File lib/racket/l4/igmpv2.rb, line 46
  def checksum?
    self.checksum == 0 || (self.checksum == compute_checksum)
  end

Do whatever ‘fixing’ is neccessary in preparation for being sent

[Source]

# File lib/racket/l4/igmpv2.rb, line 57
  def fix!
    checksum!
  end

[Validate]