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.
This commit is contained in:
@ -30,6 +30,7 @@ public class TCPConnection {
|
||||
private RouterIdentity _ident;
|
||||
private Hash _attemptedPeer;
|
||||
private TCPAddress _remoteAddress;
|
||||
private String _shownAddress;
|
||||
private List _pendingMessages;
|
||||
private InputStream _in;
|
||||
private OutputStream _out;
|
||||
@ -49,6 +50,7 @@ public class TCPConnection {
|
||||
_pendingMessages = new ArrayList(4);
|
||||
_ident = null;
|
||||
_remoteAddress = null;
|
||||
_shownAddress = null;
|
||||
_in = null;
|
||||
_out = null;
|
||||
_socket = null;
|
||||
@ -75,6 +77,10 @@ public class TCPConnection {
|
||||
public void setRemoteAddress(TCPAddress addr) { _remoteAddress = addr; }
|
||||
/** Who we initially were trying to contact */
|
||||
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
|
||||
|
Reference in New Issue
Block a user