Class Ping

  • public class Ping
    extends Message

    See BIP31 for details.

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

    • Constructor Detail

      • Ping

        public Ping​(long nonce)
        Create a Ping with a given nonce value.
      • Ping

        public Ping()
        Create a Ping with a random nonce value.
    • Method Detail

      • bitcoinSerializeToStream

        public void bitcoinSerializeToStream​( stream)
        Description copied from class: Message
        Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
        bitcoinSerializeToStream in class Message
      • hasNonce

        public boolean hasNonce()
        returns true
      • getNonce

        public long getNonce()