All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----edu.utah.janos.nodeos.pj_DemultiplexKey.KeySegment | +----edu.utah.janos.nodeos.pj_DemultiplexKey.ANEPHeader
Summary |
private static class pj_DemultiplexKey.ANEPHeader extends edu.utah.janos.nodeos.pj_DemultiplexKey.KeySegment { // Fields 3 private static final boolean[] allMask; private final pj_DemultiplexKey.ByteMask headerMask; private static final boolean[] mask; // Constructors 1 public ANEPHeader(int, byte, boolean, short); // Methods 2 public int match(byte[], int, int); public String toString(); }
A key segment that matches an ANEP header 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 | Flags | Type ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ANEP Header Length | ANEP Packet Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ~ Options ~ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | . | ~ Payload ~ | . | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields |
· headerMask | Summary | Top |
private final pj_DemultiplexKey.ByteMask headerMask
A byte mask for matching the first part of the header
· mask | Summary | Top |
private static final boolean[] mask
Bitmask for matching the first part of the header, we don't want to match the flags field.
· allMask | Summary | Top |
private static final boolean[] allMask
Similar to above, but we don't match the version either
Constructors |
· ANEPHeader | Summary | Top |
public ANEPHeader(int offset, byte version, boolean allVersions, short protocolID)
Construct an ANEPHeader that matches a specific version and protocol ID.
Methods |
· match | Summary | Top |
public int match(byte[] payload, int payloadStart, int payloadLength)
- Overrides:
- match in class pj_DemultiplexKey.KeySegment
· toString | Summary | Top |
public String toString()
- Overrides:
- toString in class Object
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7