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