| |
|
| java.lang.Object com.tc.net.protocol.AbstractTCNetworkHeader com.tc.net.protocol.transport.WireProtocolHeader
WireProtocolHeader | public class WireProtocolHeader extends AbstractTCNetworkHeader (Code) | | This class models the header portion of a TC wire protocol message. NOTE: This class makes no attempt to be thread
safe! All concurrent access must be syncronized
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Version| HL |Type of Service| Time to Live | Protocol |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Magic number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 32 Bit Total Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Alder32 Header Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Destination Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source Port | Destination Port |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Options | Padding |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
author: teck |
DEFAULT_TTL | final public static short DEFAULT_TTL(Code) | | |
MAX_LENGTH | final static short MAX_LENGTH(Code) | | |
MIN_LENGTH | final static short MIN_LENGTH(Code) | | |
PROTOCOL_OOOP | final public static short PROTOCOL_OOOP(Code) | | |
PROTOCOL_TCM | final public static short PROTOCOL_TCM(Code) | | |
PROTOCOL_TRANSPORT_HANDSHAKE | final public static short PROTOCOL_TRANSPORT_HANDSHAKE(Code) | | |
PROTOCOL_UNKNOWN | final public static short PROTOCOL_UNKNOWN(Code) | | |
VALID_PROTOCOLS | final public static short[] VALID_PROTOCOLS(Code) | | |
VALID_VERSIONS | final public static byte[] VALID_VERSIONS(Code) | | |
VERSION_1 | final public static byte VERSION_1(Code) | | |
WireProtocolHeader | public WireProtocolHeader()(Code) | | |
computeChecksum | public void computeChecksum()(Code) | | |
getChecksum | public long getChecksum()(Code) | | |
getDestinationAddress | public byte[] getDestinationAddress()(Code) | | |
getDestinationPort | public int getDestinationPort()(Code) | | |
getHeaderByteLength | public int getHeaderByteLength()(Code) | | |
getHeaderLength | public byte getHeaderLength()(Code) | | |
getMagicNum | public int getMagicNum()(Code) | | |
getMaxByteLength | public int getMaxByteLength()(Code) | | |
getMinByteLength | public int getMinByteLength()(Code) | | |
getProtocol | public short getProtocol()(Code) | | |
getSourceAddress | public byte[] getSourceAddress()(Code) | | |
getSourcePort | public int getSourcePort()(Code) | | |
getTimeToLive | public short getTimeToLive()(Code) | | |
getTotalPacketLength | public int getTotalPacketLength()(Code) | | |
getTypeOfService | public short getTypeOfService()(Code) | | |
getVersion | public byte getVersion()(Code) | | |
isChecksumValid | public boolean isChecksumValid()(Code) | | |
isTransportHandshakeMessage | public boolean isTransportHandshakeMessage()(Code) | | |
setDestinationAddress | public void setDestinationAddress(byte[] destAddr)(Code) | | |
setDestinationPort | public void setDestinationPort(int dstPort)(Code) | | |
setHeaderLength | protected void setHeaderLength(short length)(Code) | | |
setProtocol | public void setProtocol(short protocol)(Code) | | |
setSourceAddress | public void setSourceAddress(byte[] srcAddr)(Code) | | |
setSourcePort | public void setSourcePort(int srcPort)(Code) | | |
setTimeToLive | public void setTimeToLive(short ttl)(Code) | | |
setTotalPacketLength | public void setTotalPacketLength(int length)(Code) | | |
setTypeOfService | public void setTypeOfService(short tos)(Code) | | |
setVersion | public void setVersion(byte version)(Code) | | |
|
|
|