public class AddressV2Message extends AddressMessage
Represents an "addrv2" message on the P2P network, which contains broadcast IP addresses of other peers. This is one of the ways peers can find each other without using the DNS or IRC discovery mechanisms. However storing and using addrv2 messages is not presently implemented.
See BIP155 for details.
Instances of this class are not safe for use by multiple threads.
addresses, MAX_ADDRESSES
cursor, length, MAX_SIZE, offset, params, payload, recached, serializer, UNKNOWN_LENGTH
Modifier and Type | Method and Description |
---|---|
void |
addAddress(PeerAddress address) |
protected void |
parse() |
java.lang.String |
toString() |
bitcoinSerializeToStream, getAddresses, removeAddress
adjustLength, bitcoinSerialize, bitcoinSerialize, getHash, getMessageSize, getParams, hasMoreBytes, isCached, isRecached, readByte, readByteArray, readBytes, readHash, readInt64, readStr, readUint32, readUint64, readVarInt, readVarInt, setSerializer, unCache, unsafeBitcoinSerialize
protected void parse() throws ProtocolException
parse
in class Message
ProtocolException
public void addAddress(PeerAddress address)
addAddress
in class AddressMessage
public java.lang.String toString()
toString
in class java.lang.Object