public class AddressV1Message extends AddressMessage
Represents an "addr" 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 addr messages is not presently implemented.
Instances of this class are not safe for use by multiple threads.
addresses, MAX_ADDRESSEScursor, 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, removeAddressadjustLength, bitcoinSerialize, bitcoinSerialize, getHash, getMessageSize, getParams, hasMoreBytes, isCached, isRecached, readByte, readByteArray, readBytes, readHash, readInt64, readStr, readUint32, readUint64, readVarInt, readVarInt, setSerializer, unCache, unsafeBitcoinSerializeprotected void parse()
throws ProtocolException
parse in class MessageProtocolExceptionpublic void addAddress(PeerAddress address)
addAddress in class AddressMessagepublic java.lang.String toString()
toString in class java.lang.Object