forked from I2P_Developers/i2p.i2p
Updates after review:
Remove meeh.i2p as update host (ticket #1515) Re-add 193.xxx https reseed Fix SocketManagerFactory property handling Restore UPnP locale fix lost in the merge i2ptunnel finals I2NP unique id fixes duplicate done() in ReseedChecker bigger langbox in CSS reformatting Javadocs
This commit is contained in:
@@ -256,7 +256,7 @@ public class DatabaseStoreMessage extends FastI2NPMessageImpl {
|
||||
StringBuilder buf = new StringBuilder();
|
||||
buf.append("[DatabaseStoreMessage: ");
|
||||
buf.append("\n\tExpiration: ").append(new Date(_expiration));
|
||||
buf.append("\n\tUnique ID: ").append(_uniqueId);
|
||||
buf.append("\n\tUnique ID: ").append(getUniqueId());
|
||||
if (_replyToken != 0) {
|
||||
buf.append("\n\tReply token: ").append(_replyToken);
|
||||
buf.append("\n\tReply tunnel: ").append(_replyTunnel);
|
||||
|
||||
@@ -31,6 +31,13 @@ public abstract class I2NPMessageImpl extends DataStructureImpl implements I2NPM
|
||||
protected final Log _log;
|
||||
protected final I2PAppContext _context;
|
||||
protected long _expiration;
|
||||
|
||||
/**
|
||||
* Warning, lazily initialized by readBytes(), writeBytes(), toByteArray(),
|
||||
* getUniqueId(), and setUniqueId(); otherwise will be -1.
|
||||
* Extending classes should take care when accessing this field;
|
||||
* to ensure initialization, use getUniqueId() instead.
|
||||
*/
|
||||
protected long _uniqueId = -1;
|
||||
|
||||
public final static long DEFAULT_EXPIRATION_MS = 1*60*1000; // 1 minute by default
|
||||
@@ -257,7 +264,7 @@ public abstract class I2NPMessageImpl extends DataStructureImpl implements I2NPM
|
||||
}
|
||||
|
||||
/**
|
||||
* The ID is set to a random value in the constructor but it can be overridden here.
|
||||
* The ID is set to a random value when written but it can be overridden here.
|
||||
*/
|
||||
public void setUniqueId(long id) { _uniqueId = id; }
|
||||
|
||||
|
||||
@@ -234,7 +234,7 @@ public class TunnelDataMessage extends FastI2NPMessageImpl {
|
||||
public String toString() {
|
||||
StringBuilder buf = new StringBuilder();
|
||||
buf.append("[TunnelDataMessage:");
|
||||
buf.append(" MessageId: ").append(_uniqueId);
|
||||
buf.append(" MessageId: ").append(getUniqueId());
|
||||
buf.append(" Tunnel ID: ").append(_tunnelId);
|
||||
buf.append("]");
|
||||
return buf.toString();
|
||||
|
||||
Reference in New Issue
Block a user