class PeerTestState extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PeerTestState.Role |
Constructor and Description |
---|
PeerTestState(PeerTestState.Role role,
boolean isIPv6,
long nonce,
long now) |
Modifier and Type | Method and Description |
---|---|
SessionKey |
getAliceIntroKey() |
InetAddress |
getAliceIP()
If we are Alice, this will contain the IP that Bob says we
can be reached at - the IP Charlie says we can be reached
at is _aliceIPFromCharlie
|
InetAddress |
getAliceIPFromCharlie() |
int |
getAlicePort()
If we are Alice, this will contain the port that Bob says we
can be reached at - the port Charlie says we can be reached
at is _alicePortFromCharlie
|
int |
getAlicePortFromCharlie() |
long |
getBeginTime()
when did this test begin?
|
SessionKey |
getBobCipherKey() |
InetAddress |
getBobIP() |
SessionKey |
getBobMACKey() |
int |
getBobPort() |
SessionKey |
getCharlieIntroKey() |
InetAddress |
getCharlieIP() |
int |
getCharliePort() |
long |
getLastSendTime()
when did we last send out a packet?
|
long |
getNonce() |
PeerTestState.Role |
getOurRole()
Are we Alice, bob, or Charlie.
|
long |
getReceiveAliceTime()
when did we last hear from alice?
|
long |
getReceiveBobTime()
when did we last hear from bob?
|
long |
getReceiveCharlieTime()
when did we last hear from charlie?
|
int |
incrementPacketsRelayed() |
boolean |
isIPv6()
Is this an IPv6 test?
|
void |
setAliceIntroKey(SessionKey key) |
void |
setAliceIP(InetAddress ip) |
void |
setAliceIPFromCharlie(InetAddress ip) |
void |
setAlicePort(int alicePort) |
void |
setAlicePortFromCharlie(int alicePortFromCharlie) |
void |
setBobCipherKey(SessionKey key) |
void |
setBobIP(InetAddress ip) |
void |
setBobMACKey(SessionKey key) |
void |
setBobPort(int bobPort) |
void |
setCharlieIntroKey(SessionKey key) |
void |
setCharlieIP(InetAddress ip) |
void |
setCharliePort(int charliePort) |
void |
setLastSendTime(long when) |
void |
setReceiveAliceTime(long when) |
void |
setReceiveBobTime(long when) |
void |
setReceiveCharlieTime(long when) |
String |
toString() |
public PeerTestState(PeerTestState.Role role, boolean isIPv6, long nonce, long now)
public long getNonce()
public PeerTestState.Role getOurRole()
public boolean isIPv6()
public InetAddress getAliceIP()
public void setAliceIP(InetAddress ip)
public InetAddress getBobIP()
public void setBobIP(InetAddress ip)
public InetAddress getCharlieIP()
public void setCharlieIP(InetAddress ip)
public InetAddress getAliceIPFromCharlie()
public void setAliceIPFromCharlie(InetAddress ip)
public int getAlicePort()
public void setAlicePort(int alicePort)
public int getBobPort()
public void setBobPort(int bobPort)
public int getCharliePort()
public void setCharliePort(int charliePort)
public int getAlicePortFromCharlie()
public void setAlicePortFromCharlie(int alicePortFromCharlie)
public SessionKey getAliceIntroKey()
public void setAliceIntroKey(SessionKey key)
public SessionKey getCharlieIntroKey()
public void setCharlieIntroKey(SessionKey key)
public SessionKey getBobCipherKey()
public void setBobCipherKey(SessionKey key)
public SessionKey getBobMACKey()
public void setBobMACKey(SessionKey key)
public long getBeginTime()
public long getLastSendTime()
public void setLastSendTime(long when)
public long getReceiveAliceTime()
public void setReceiveAliceTime(long when)
public long getReceiveBobTime()
public void setReceiveBobTime(long when)
public long getReceiveCharlieTime()
public void setReceiveCharlieTime(long when)
public int incrementPacketsRelayed()