Class Pong


  • public class Pong
    extends Message

    Instances of this class are not safe for use by multiple threads.

    • Constructor Detail

      • Pong

        public Pong​(long nonce)
        Create a Pong with a nonce value. Only use this if the remote node has a protocol version greater than 60000
    • Method Detail

      • bitcoinSerializeToStream

        public void bitcoinSerializeToStream​(java.io.OutputStream stream)
                                      throws java.io.IOException
        Description copied from class: Message
        Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
        Overrides:
        bitcoinSerializeToStream in class Message
        Throws:
        java.io.IOException
      • getNonce

        public long getNonce()
        Returns the nonce sent by the remote peer.