public class CompactPeerInfo extends Object implements Iterable<Peer>
Iterable.iterator()
is used.
Results are cached, so it's only done once per instance of this class.Modifier and Type | Class and Description |
---|---|
static class |
CompactPeerInfo.AddressType
Address family
|
Constructor and Description |
---|
CompactPeerInfo(byte[] peers,
CompactPeerInfo.AddressType addressType)
Create a list of peers from its' binary representation,
using the specified address type for decoding individual addresses.
|
CompactPeerInfo(byte[] peers,
CompactPeerInfo.AddressType addressType,
byte[] cryptoFlags)
Create a list of peers from its' binary representation,
using the specified address type for decoding individual addresses.
|
Modifier and Type | Method and Description |
---|---|
Iterator<Peer> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public CompactPeerInfo(byte[] peers, CompactPeerInfo.AddressType addressType)
public CompactPeerInfo(byte[] peers, CompactPeerInfo.AddressType addressType, byte[] cryptoFlags)
cryptoFlags
- Byte array, where each byte indicates
whether the corresponding peer from peers
supports MSE:
1 if peer supports encryption, 0 otherwise.Copyright © 2016–2021. All rights reserved.