public abstract class Path extends Object
This class is thread safe.
| Modifier | Constructor and Description |
|---|---|
protected |
Path(byte[] rawPath,
long dstIsdAs,
InetAddress dstIP,
int dstPort) |
| Modifier and Type | Method and Description |
|---|---|
abstract Path |
copy(InetAddress dstIP,
int dstPort)
Create a copy of the Path with a new destination IP and port.
|
abstract InetSocketAddress |
getFirstHopAddress() |
abstract PathMetadata |
getMetadata() |
byte[] |
getRawPath() |
InetAddress |
getRemoteAddress() |
long |
getRemoteIsdAs() |
int |
getRemotePort() |
ScionSocketAddress |
getRemoteSocketAddress() |
String |
toString() |
protected Path(byte[] rawPath,
long dstIsdAs,
InetAddress dstIP,
int dstPort)
public abstract Path copy(InetAddress dstIP, int dstPort)
dstIP - new destination IPdstPort - new destination portpublic byte[] getRawPath()
public abstract InetSocketAddress getFirstHopAddress() throws UnknownHostException
UnknownHostExceptionpublic int getRemotePort()
public InetAddress getRemoteAddress()
public long getRemoteIsdAs()
public ScionSocketAddress getRemoteSocketAddress()
public abstract PathMetadata getMetadata()
Copyright © 2024. All rights reserved.