Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fi.hut.tcm.jacob.conduits.BufferMessenger | +--fi.hut.tcm.jacob.tcpip.icmp.IcmpChecksumMessenger | +--fi.hut.tcm.jacob.tcpip.icmp.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 |
public static IcmpChecksumToNetMessenger instance
Messenger
of this kind.Method Detail |
public void apply(fi.hut.tcm.jacob.conduits.Message message, fi.hut.tcm.jacob.conduits.State state, fi.hut.tcm.jacob.conduits.Session session)
message
- Message
state
- State
session
- Session
public void addChecksum(fi.hut.tcm.jacob.conduits.Message message)
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 |