|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.transport.udp.PeerTestState
class PeerTestState
Track the state of a peer test. Used only by PeerTestManager.
Nested Class Summary | |
---|---|
static class |
PeerTestState.Role
|
Constructor Summary | |
---|---|
PeerTestState(PeerTestState.Role role,
long nonce,
long now)
|
Method Summary | |
---|---|
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()
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PeerTestState(PeerTestState.Role role, long nonce, long now)
Method Detail |
---|
public long getNonce()
public PeerTestState.Role getOurRole()
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()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |