public class Ping extends Message
Message.LazyParseException
checksum, cursor, length, MAX_SIZE, offset, params, parsed, parseLazy, parseRetain, payload, protocolVersion, recached, UNKNOWN_LENGTH
Constructor and Description |
---|
Ping()
Create a Ping without a nonce value.
|
Ping(long nonce)
Create a Ping with a nonce value.
|
Ping(NetworkParameters params,
byte[] payloadBytes) |
Modifier and Type | Method and Description |
---|---|
void |
bitcoinSerializeToStream(OutputStream stream)
Serializes this message to the provided stream.
|
long |
getNonce() |
boolean |
hasNonce() |
protected void |
parseLite()
Perform the most minimal parse possible to calculate the length of the message payload.
|
adjustLength, bitcoinSerialize, bitcoinSerialize, ensureParsed, getHash, getMessageSize, getParams, isCached, isParsed, isRecached, maybeParse, unCache, unsafeBitcoinSerialize
public Ping(NetworkParameters params, byte[] payloadBytes) throws ProtocolException
ProtocolException
public Ping(long nonce)
public Ping()
public void bitcoinSerializeToStream(OutputStream stream) throws IOException
Message
IOException
protected void parseLite()
Message
public boolean hasNonce()
public long getNonce()
Copyright © 2014. All rights reserved.