|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.transport.udp.OutboundEstablishState
public class 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_PENDING_INTRO
we need to have someone introduce us to the peer, but haven't received a RelayResponse yet |
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,
UDPAddress addr)
|
Method Summary | |
---|---|
void |
addMessage(OutNetMessage msg)
|
boolean |
complete()
|
void |
confirmedPacketsSent()
note that we just sent the SessionConfirmed packet |
void |
dataReceived()
we have received a real data packet, so we're done establishing |
void |
fail()
|
SessionKey |
getCipherKey()
|
long |
getEstablishBeginTime()
|
SessionKey |
getIntroKey()
|
long |
getIntroNonce()
|
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()
|
UDPAddress |
getRemoteAddress()
|
RemoteHostId |
getRemoteHostId()
uniquely identifies an attempt |
RouterIdentity |
getRemoteIdentity()
|
byte[] |
getSentIP()
|
int |
getSentPort()
|
Signature |
getSentSignature()
|
long |
getSentSignedOnTime()
|
byte[] |
getSentX()
|
int |
getState()
|
void |
introduced(java.net.InetAddress bob,
byte[] bobIP,
int bobPort)
|
void |
introductionFailed()
|
void |
introSent()
|
void |
prepareSessionConfirmed()
Lets sign everything so we can fragment properly |
void |
receiveSessionCreated(UDPPacketReader.SessionCreatedReader reader)
|
void |
requestSent()
note that we just sent the SessionRequest packet |
void |
setIntroNonce(long nonce)
|
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
public static final int STATE_PENDING_INTRO
Constructor Detail |
---|
public OutboundEstablishState(RouterContext ctx, java.net.InetAddress remoteHost, int remotePort, RouterIdentity remotePeer, SessionKey introKey, UDPAddress addr)
Method Detail |
---|
public int getState()
public boolean complete()
public UDPAddress getRemoteAddress()
public void setIntroNonce(long nonce)
public long getIntroNonce()
public void addMessage(OutNetMessage msg)
public OutNetMessage getNextQueuedMessage()
public RouterIdentity getRemoteIdentity()
public SessionKey getIntroKey()
public byte[] getSentX()
public byte[] getSentIP()
public int getSentPort()
public void receiveSessionCreated(UDPPacketReader.SessionCreatedReader reader)
public boolean validateSessionCreated()
public void fail()
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 void introSent()
public void introductionFailed()
public void introduced(java.net.InetAddress bob, byte[] bobIP, int bobPort)
public long getLifetime()
public long getEstablishBeginTime()
public long getNextSendTime()
public void setNextSendTime(long when)
public RemoteHostId getRemoteHostId()
public void dataReceived()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |