public abstract class AddressMessage extends Message
Modifier and Type | Field and Description |
---|---|
protected java.util.List<PeerAddress> |
addresses |
protected static long |
MAX_ADDRESSES |
cursor, length, MAX_SIZE, offset, params, payload, recached, serializer, UNKNOWN_LENGTH
Modifier and Type | Method and Description |
---|---|
abstract void |
addAddress(PeerAddress address) |
protected void |
bitcoinSerializeToStream(java.io.OutputStream stream)
Serializes this message to the provided stream.
|
java.util.List<PeerAddress> |
getAddresses() |
void |
removeAddress(int index) |
adjustLength, bitcoinSerialize, bitcoinSerialize, getHash, getMessageSize, getParams, hasMoreBytes, isCached, isRecached, parse, readByte, readByteArray, readBytes, readHash, readInt64, readStr, readUint32, readUint64, readVarInt, readVarInt, setSerializer, unCache, unsafeBitcoinSerialize
protected static final long MAX_ADDRESSES
protected java.util.List<PeerAddress> addresses
protected void bitcoinSerializeToStream(java.io.OutputStream stream) throws java.io.IOException
Message
bitcoinSerializeToStream
in class Message
java.io.IOException
public abstract void addAddress(PeerAddress address)
public void removeAddress(int index)
public java.util.List<PeerAddress> getAddresses()