public class Ping extends Message
Message.LazyParseException
bytes, checksum, cursor, length, MAX_SIZE, offset, params, parsed, parseLazy, parseRetain, 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.
|
protected void |
parseLite()
Perform the most minimal parse possible to calculate the length of the message.
|
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
Copyright © 2014. All rights reserved.