|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.transport.udp.OutboundEstablishState
Data for a new connection being established, where we initiated the connection with a remote peer. In other words, we are Alice and they are Bob.
Field Summary | |
static int |
STATE_CONFIRMED_COMPLETELY
we have received a data packet |
static int |
STATE_CONFIRMED_PARTIALLY
we have sent one or more confirmation packets |
static int |
STATE_CREATED_RECEIVED
we have received a signed creation packet |
static int |
STATE_REQUEST_SENT
we have sent an initial request |
static int |
STATE_UNKNOWN
nothin sent yet |
Constructor Summary | |
OutboundEstablishState(RouterContext ctx,
java.net.InetAddress remoteHost,
int remotePort,
RouterIdentity remotePeer,
SessionKey introKey)
|
Method Summary | |
void |
addMessage(OutNetMessage msg)
|
void |
confirmedPacketsSent()
note that we just sent the SessionConfirmed packet |
void |
dataReceived()
we have received a real data packet, so we're done establishing |
SessionKey |
getCipherKey()
|
long |
getEstablishBeginTime()
|
SessionKey |
getIntroKey()
|
long |
getLifetime()
how long have we been trying to establish this session? |
SessionKey |
getMACKey()
|
OutNetMessage |
getNextQueuedMessage()
|
long |
getNextSendTime()
|
byte[] |
getReceivedIP()
|
int |
getReceivedPort()
|
long |
getReceivedRelayTag()
|
long |
getReceivedSignedOnTime()
|
java.lang.String |
getRemoteHostInfo()
host+port, uniquely identifies an attempt |
RouterIdentity |
getRemoteIdentity()
|
byte[] |
getSentIP()
|
int |
getSentPort()
|
Signature |
getSentSignature()
|
long |
getSentSignedOnTime()
|
byte[] |
getSentX()
|
int |
getState()
|
void |
prepareSessionConfirmed()
Lets sign everything so we can fragment properly |
void |
prepareSessionRequest()
|
void |
receiveSessionCreated(UDPPacketReader.SessionCreatedReader reader)
|
void |
requestSent()
note that we just sent the SessionRequest packet |
void |
setNextSendTime(long when)
|
boolean |
validateSessionCreated()
Blocking call (run in the establisher thread) to determine if the session was created properly. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int STATE_UNKNOWN
public static final int STATE_REQUEST_SENT
public static final int STATE_CREATED_RECEIVED
public static final int STATE_CONFIRMED_PARTIALLY
public static final int STATE_CONFIRMED_COMPLETELY
Constructor Detail |
public OutboundEstablishState(RouterContext ctx, java.net.InetAddress remoteHost, int remotePort, RouterIdentity remotePeer, SessionKey introKey)
Method Detail |
public int getState()
public void addMessage(OutNetMessage msg)
public OutNetMessage getNextQueuedMessage()
public RouterIdentity getRemoteIdentity()
public SessionKey getIntroKey()
public void prepareSessionRequest()
public byte[] getSentX()
public byte[] getSentIP()
public int getSentPort()
public void receiveSessionCreated(UDPPacketReader.SessionCreatedReader reader)
public boolean validateSessionCreated()
public SessionKey getCipherKey()
public SessionKey getMACKey()
public long getReceivedRelayTag()
public long getSentSignedOnTime()
public long getReceivedSignedOnTime()
public byte[] getReceivedIP()
public int getReceivedPort()
public void prepareSessionConfirmed()
public Signature getSentSignature()
public void confirmedPacketsSent()
public void requestSent()
public long getLifetime()
public long getEstablishBeginTime()
public long getNextSendTime()
public void setNextSendTime(long when)
public java.lang.String getRemoteHostInfo()
public void dataReceived()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |