Package org.bitcoinj.core
Class AddressV1Message
java.lang.Object
org.bitcoinj.core.Message
org.bitcoinj.core.AddressMessage
org.bitcoinj.core.AddressV1Message
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.
-
Field Summary
Fields inherited from class org.bitcoinj.core.AddressMessage
addresses, MAX_ADDRESSESFields inherited from class org.bitcoinj.core.Message
cursor, length, MAX_SIZE, offset, params, payload, recached, serializer, UNKNOWN_LENGTH -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAddress(PeerAddress address) protected voidparse()toString()Methods inherited from class org.bitcoinj.core.AddressMessage
bitcoinSerializeToStream, getAddresses, removeAddressMethods inherited from class org.bitcoinj.core.Message
adjustLength, bitcoinSerialize, bitcoinSerialize, getHash, getMessageSize, getParams, hasMoreBytes, isCached, isRecached, readByte, readByteArray, readBytes, readHash, readInt64, readStr, readUint32, readUint64, readVarInt, readVarInt, setSerializer, unCache, unsafeBitcoinSerialize
-
Method Details
-
parse
- Specified by:
parsein classMessage- Throws:
ProtocolException
-
addAddress
- Specified by:
addAddressin classAddressMessage
-
toString
-