| Modifier and Type | Field and Description |
|---|---|
| private static final int | MAGIC
JDP protocol magic. |
| private static final short | PROTOCOL_VERSION
Current version of protocol. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | |
| public static int | |
| public static short |
| MAGIC | back to summary |
|---|---|
| private static final int MAGIC JDP protocol magic. Magic allows a reader to quickly select JDP packets from a bunch of broadcast packets addressed to the same port and broadcast group. Any packet intended to be parsed by JDP client has to start from this magic. | |
| PROTOCOL_VERSION | back to summary |
|---|---|
| private static final short PROTOCOL_VERSION Current version of protocol. Any implementation of this protocol has to conform with the packet structure and the flow described in JEP-168 | |
| JdpGenericPacket | back to summary |
|---|---|
| protected JdpGenericPacket() Default do-nothing constructor | |
| checkMagic | back to summary |
|---|---|
| public static void checkMagic(int magic) throws JdpException Validate protocol header magic field
| |
| checkVersion | back to summary |
|---|---|
| public static void checkVersion(short version) throws JdpException Validate protocol header version field
| |
| getMagic | back to summary |
|---|---|
public static int getMagic()
| |
| getVersion | back to summary |
|---|---|
public static short getVersion()
| |