Package org.bitcoinj.core
Class AddressV1Message
- java.lang.Object
-
- org.bitcoinj.core.Message
-
- org.bitcoinj.core.AddressMessage
-
- org.bitcoinj.core.AddressV1Message
-
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.
-
-
Field Summary
-
Fields inherited from class org.bitcoinj.core.AddressMessage
addresses, MAX_ADDRESSES
-
Fields inherited from class org.bitcoinj.core.Message
MAX_SIZE, params, payload, serializer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAddress(PeerAddress address)
protected void
parse()
java.lang.String
toString()
-
Methods inherited from class org.bitcoinj.core.AddressMessage
bitcoinSerializeToStream, getAddresses, removeAddress
-
Methods inherited from class org.bitcoinj.core.Message
bitcoinSerialize, getHash, getMessageSize, getParams, readByte, readByteArray, readBytes, readHash, readInt32, readInt64, readStr, readUint32, readUint64, readVarInt, skipBytes, unCache, unsafeBitcoinSerialize
-
-
-
-
Method Detail
-
parse
protected void parse() throws java.nio.BufferUnderflowException, ProtocolException
- Specified by:
parse
in classMessage
- Throws:
java.nio.BufferUnderflowException
ProtocolException
-
addAddress
public void addAddress(PeerAddress address)
- Specified by:
addAddress
in classAddressMessage
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-