Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class fi.hut.tcm.jacob.tcpip.icmp.IcmpChecksumToNetMessenger

java.lang.Object
  |
  +--fi.hut.tcm.jacob.conduits.BufferMessenger
        |
        +--fi.hut.tcm.jacob.tcpip.icmp.IcmpChecksumMessenger
              |
              +--fi.hut.tcm.jacob.tcpip.icmp.IcmpChecksumToNetMessenger

public class IcmpChecksumToNetMessenger
extends IcmpChecksumMessenger
implements fi.hut.tcm.jacob.conduits.Messenger
IcmpChecksumToNetMessenger

This is the messenger that contains the logic for ICMP messages going out to the network. Contains a method for calculating the checksum of this ICMP message and adds it to the message.


Field Summary
static IcmpChecksumToNetMessenger instance
          There should exist only one Messenger of this kind.
 
Method Summary
void addChecksum(fi.hut.tcm.jacob.conduits.Message message)
          Calculates and adds the ICMP checksum to a message.
void apply(fi.hut.tcm.jacob.conduits.Message message, fi.hut.tcm.jacob.conduits.State state, fi.hut.tcm.jacob.conduits.Session session)
          Method for applying a message to a state of a specific session.
 
Methods inherited from class fi.hut.tcm.jacob.tcpip.icmp.IcmpChecksumMessenger
calculateChecksum, getChecksum, setChecksum
 
Methods inherited from class fi.hut.tcm.jacob.conduits.BufferMessenger
appendTrailer, copyBuffer, copyData, extractData, get6BytesUnaligned, getBit, getByte, getHalfByte, getInt, getIntUnaligned, getLength, getLong, getLongUnaligned, getShort, getShortUnaligned, hexDump, hexDump, newBuffer, newBuffer, newBuffer, prependHeader, removeHeader, removeTrailer, set6BytesUnaligned, setBit, setByte, setHalfByte, setInt, setIntUnaligned, setLong, setLongUnaligned, setShort, setShortUnaligned
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

instance

public static IcmpChecksumToNetMessenger instance
There should exist only one Messenger of this kind.
Method Detail

apply

public void apply(fi.hut.tcm.jacob.conduits.Message message,
                  fi.hut.tcm.jacob.conduits.State state,
                  fi.hut.tcm.jacob.conduits.Session session)
Method for applying a message to a state of a specific session.
Specified by:
apply(fi.hut.tcm.jacob.conduits.Message, fi.hut.tcm.jacob.conduits.State, fi.hut.tcm.jacob.conduits.Session) in interface fi.hut.tcm.jacob.conduits.Messenger
Parameters:
message - Message
state - State
session - Session

addChecksum

public void addChecksum(fi.hut.tcm.jacob.conduits.Message message)
Calculates and adds the ICMP checksum to a message.
Parameters:
message - Message

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD