|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.edwards.des.net.packet.Packet
me.edwards.des.net.packet.PacketPing
public class PacketPing
Ping Packet
This packet is sent to request a response from its destination Node.
Created on: Oct 17, 2015 at 9:12:01 AM
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class me.edwards.des.net.packet.Packet |
|---|
Packet.PacketTypes |
| Field Summary | |
|---|---|
private long |
ping
|
| Constructor Summary | |
|---|---|
PacketPing(byte[] binary)
Creates new PacketPing from binary data |
|
PacketPing(long ping)
Creates new PacketPing |
|
| Method Summary | |
|---|---|
byte[] |
getBinary()
Returns the binary payload of this Packet as a byte array. |
long |
getPing()
Returns the Nonce for checking ping. |
| Methods inherited from class me.edwards.des.net.packet.Packet |
|---|
getID, lookup, toHex, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private long ping
| Constructor Detail |
|---|
public PacketPing(long ping)
ping - Nonce for checking pingpublic PacketPing(byte[] binary)
binary - Packet binary data| Method Detail |
|---|
public long getPing()
Pong Packet.
public byte[] getBinary()
Packet
getBinary in class Packet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||