com.neeve.pkt
Class PktSubheader
java.lang.Object
com.neeve.util.UtlListElement
com.neeve.pkt.PktSerializable
com.neeve.pkt.PktBody
com.neeve.pkt.PktSubheader
- All Implemented Interfaces:
- PktBuffer.Initializer
- Direct Known Subclasses:
- PktSubheaderFixed, PktSubheaderVariable
public abstract class PktSubheader
- extends PktBody
Base class for packet subheaders.
- Threading:
- Packet bodies are not safe for concurrent access by
multiple threads.
Fields inherited from class com.neeve.util.UtlListElement |
count, head, next, prev |
Methods inherited from class com.neeve.util.UtlListElement |
count, insertAfter, insertBefore, isLinked, next, previous, unlink, wipe |
V1
public static final byte V1
- See Also:
- Constant Field Values
VERSION
public static final byte VERSION
- See Also:
- Constant Field Values
PREAMBLE_LENGTH_V1
public static final int PREAMBLE_LENGTH_V1
- See Also:
- Constant Field Values
PREAMBLE_LENGTH
public static final int PREAMBLE_LENGTH
- See Also:
- Constant Field Values
getType
public static final int getType(ByteBuffer buffer,
int offset)
- Get the subheader type from a serialized subheader preamble.
- Returns:
- Returns the packet type
- Threading:
- This method is not safe for concurrent access by
multiple threads
getSerializedLength
public abstract int getSerializedLength(ByteBuffer buffer)
- Get the serialized length from the serialized form
Copyright © 2015 Neeve Research, LLC. All Rights Reserved.