Class AddressMessage

    • Method Detail

      • bitcoinSerializeToStream

        protected 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
      • addAddress

        public abstract void addAddress​(PeerAddress address)
      • removeAddress

        public void removeAddress​(int index)
      • getAddresses

        public java.util.List<PeerAddress> getAddresses()
        Returns:
        An unmodifiableList view of the backing List of addresses. Addresses contained within the list may be safely modified.