Package ch.bitagent.bitcoin.lib.network
Class PongMessage
- java.lang.Object
-
- ch.bitagent.bitcoin.lib.network.PongMessage
-
-
Constructor Summary
Constructors Constructor Description PongMessage(byte[] nonce)Constructor for PongMessage.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getCommand()getCommand.static PongMessageparse(ByteArrayInputStream stream)parse.byte[]serialize()serialize.
-
-
-
Field Detail
-
COMMAND
public static final String COMMAND
ConstantCOMMAND="pong"- See Also:
- Constant Field Values
-
-
Method Detail
-
getCommand
public byte[] getCommand()
getCommand.
- Specified by:
getCommandin interfaceMessage- Returns:
- an array of
byteobjects
-
parse
public static PongMessage parse(ByteArrayInputStream stream)
parse.
- Parameters:
stream- aByteArrayInputStreamobject- Returns:
- a
PongMessageobject
-
-