public class Ping extends Message
Message.LazyParseExceptionchecksum, 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, unsafeBitcoinSerializepublic Ping(NetworkParameters params, byte[] payloadBytes) throws ProtocolException
ProtocolExceptionpublic Ping(long nonce)
public Ping()
public void bitcoinSerializeToStream(OutputStream stream) throws IOException
MessageIOExceptionprotected void parseLite()
Messagepublic boolean hasNonce()
public long getNonce()
Copyright © 2014. All rights reserved.