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

Internet Group Management Protocol, Version 1

RFC1112 (www.faqs.org/rfcs/rfc1112.html)

Methods

checksum!   checksum?   fix!  

Attributes

checksum    Checksum
gaddr    Group Address
payload    Payload
type    Type
unused    Unused
version    Version (defaults to 1)

Public Instance methods

Compute and set the checkum for this IGMP message

[Source]

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

Check the checksum for this IGMP message

[Source]

# File lib/racket/l4/igmpv1.rb, line 49
  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/igmpv1.rb, line 60
  def fix!
    self.checksum!
  end

[Validate]