Class: Racket::L4::IGMPv2
- Inherits:
-
RacketPart
- Object
- BitStruct
- RacketPart
- Racket::L4::IGMPv2
- Defined in:
- lib/racket/l4/igmpv2.rb
Overview
RFC2236 (www.faqs.org/rfcs/rfc2236.html)
Instance Attribute Summary
Attributes inherited from RacketPart
Instance Method Summary collapse
-
#checksum! ⇒ Object
Set the checksum of this IGMPv2 message.
-
#checksum? ⇒ Boolean
Is the checksum of this IGMPv2 message correct.
-
#fix! ⇒ Object
Do whatever ‘fixing’ is neccessary in preparation for being sent.
Methods inherited from RacketPart
#autofix?, #initialize, #pretty
Constructor Details
This class inherits a constructor from Racket::RacketPart
Instance Method Details
#checksum! ⇒ Object
Set the checksum of this IGMPv2 message
51 52 53 |
# File 'lib/racket/l4/igmpv2.rb', line 51 def checksum! self.checksum = compute_checksum end |
#checksum? ⇒ Boolean
Is the checksum of this IGMPv2 message correct
46 47 48 |
# File 'lib/racket/l4/igmpv2.rb', line 46 def checksum? self.checksum == 0 || (self.checksum == compute_checksum) end |
#fix! ⇒ Object
Do whatever ‘fixing’ is neccessary in preparation for being sent
57 58 59 |
# File 'lib/racket/l4/igmpv2.rb', line 57 def fix! checksum! end |