public class ResponsePath extends Path
A ResponsePath is immutable and thus thread safe.
| Modifier and Type | Method and Description |
|---|---|
Path |
copy(InetAddress dstIP,
int dstPort)
Create a copy of the Path with a new destination IP and port.
|
static ResponsePath |
create(byte[] rawPath,
long srcIsdAs,
InetAddress srcIP,
int srcPort,
long dstIsdAs,
InetAddress dstIP,
int dstPort,
InetSocketAddress firstHopAddress)
Deprecated.
Will be removed in 0.4.0
|
InetSocketAddress |
getFirstHopAddress() |
InetAddress |
getLocalAddress() |
long |
getLocalIsdAs() |
int |
getLocalPort() |
PathMetadata |
getMetadata() |
String |
toString() |
getRawPath, getRemoteAddress, getRemoteIsdAs, getRemotePort, getRemoteSocketAddress@Deprecated public static ResponsePath create(byte[] rawPath, long srcIsdAs, InetAddress srcIP, int srcPort, long dstIsdAs, InetAddress dstIP, int dstPort, InetSocketAddress firstHopAddress)
rawPath - raw pathsrcIsdAs - source IDA/ASsrcIP - source IPsrcPort - source portdstIsdAs - destination ISD/ASdstIP - destination IPdstPort - destination portfirstHopAddress - first hoppublic Path copy(InetAddress dstIP, int dstPort)
Pathpublic InetSocketAddress getFirstHopAddress()
getFirstHopAddress in class Pathpublic PathMetadata getMetadata()
getMetadata in class Pathpublic long getLocalIsdAs()
public InetAddress getLocalAddress()
public int getLocalPort()
Copyright © 2024. All rights reserved.