I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 571e3c5c authored by jrandom's avatar jrandom Committed by zzz
Browse files

2004-11-28 jrandom

    * Accept IP address detection changes with a 2-out-of-3 minimum.
    * As long as the router is up, keep retrying to bind the I2CP listener.
    * Decrease the java service wrapper ping frequency to once every 10
      minutes, rather than once every 5 seconds.
parent a2d268f3
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,7 @@ public class TCPConnection { ...@@ -30,6 +30,7 @@ public class TCPConnection {
private RouterIdentity _ident; private RouterIdentity _ident;
private Hash _attemptedPeer; private Hash _attemptedPeer;
private TCPAddress _remoteAddress; private TCPAddress _remoteAddress;
private String _shownAddress;
private List _pendingMessages; private List _pendingMessages;
private InputStream _in; private InputStream _in;
private OutputStream _out; private OutputStream _out;
...@@ -49,6 +50,7 @@ public class TCPConnection { ...@@ -49,6 +50,7 @@ public class TCPConnection {
_pendingMessages = new ArrayList(4); _pendingMessages = new ArrayList(4);
_ident = null; _ident = null;
_remoteAddress = null; _remoteAddress = null;
_shownAddress = null;
_in = null; _in = null;
_out = null; _out = null;
_socket = null; _socket = null;
...@@ -75,6 +77,10 @@ public class TCPConnection { ...@@ -75,6 +77,10 @@ public class TCPConnection {
public void setRemoteAddress(TCPAddress addr) { _remoteAddress = addr; } public void setRemoteAddress(TCPAddress addr) { _remoteAddress = addr; }
/** Who we initially were trying to contact */ /** Who we initially were trying to contact */
public void setAttemptedPeer(Hash peer) { _attemptedPeer = peer; } public void setAttemptedPeer(Hash peer) { _attemptedPeer = peer; }
/** What address the peer said we are reachable on */
public void setShownAddress(String ip) { _shownAddress = ip; }
/** What address the peer said we are reachable on */
public String getShownAddress() { return _shownAddress; }
/** /**
* Actually start processing the messages on the connection (and reading * Actually start processing the messages on the connection (and reading
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment