|
||||||||||
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.PacketPong
public class PacketPong
Pong Packet
This packet is sent as a response to a PacketPing
.
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 | |
---|---|
PacketPong(byte[] binary)
Creates new PacketPong from binary data |
|
PacketPong(long ping)
Creates new PacketPong |
Method Summary | |
---|---|
byte[] |
getBinary()
Returns the binary payload of this Packet as a byte array. |
long |
getPing()
Returns the Nonce for checking pong. |
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 PacketPong(long ping)
ping
- Nonce for checking pongpublic PacketPong(byte[] binary)
binary
- Packet binary dataMethod Detail |
---|
public long getPing()
Ping 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 |