public class RelayUtils extends Object
| Constructor and Description |
|---|
RelayUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Message |
decodeMessage(Buffer buf,
InetSocketAddress recipient,
InetSocketAddress sender) |
static Buffer |
encodeMessage(Message message) |
static Collection<PeerAddress> |
flatten(List<Map<Number160,PeerStatatistic>> maps) |
static List<Map<Number160,PeerStatatistic>> |
unflatten(Collection<PeerAddress> map,
PeerAddress sender) |
public static Buffer encodeMessage(Message message) throws InvalidKeyException, SignatureException, IOException
public static Message decodeMessage(Buffer buf, InetSocketAddress recipient, InetSocketAddress sender) throws InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException
public static List<Map<Number160,PeerStatatistic>> unflatten(Collection<PeerAddress> map, PeerAddress sender)
public static Collection<PeerAddress> flatten(List<Map<Number160,PeerStatatistic>> maps)
Copyright © 2014. All rights reserved.