forked from I2P_Developers/i2p.i2p
comment out unused GarlicConfig methods
This commit is contained in:
@@ -29,9 +29,10 @@ class GarlicConfig {
|
|||||||
private long _expiration;
|
private long _expiration;
|
||||||
private final List<GarlicConfig> _cloveConfigs;
|
private final List<GarlicConfig> _cloveConfigs;
|
||||||
private DeliveryInstructions _instructions;
|
private DeliveryInstructions _instructions;
|
||||||
private boolean _requestAck;
|
// unused
|
||||||
private RouterInfo _replyThroughRouter; // router through which any replies will be sent before delivery to us
|
//private boolean _requestAck;
|
||||||
private DeliveryInstructions _replyInstructions; // how the message will be sent from the replyThroughRouter to us
|
//private RouterInfo _replyThroughRouter; // router through which any replies will be sent before delivery to us
|
||||||
|
//private DeliveryInstructions _replyInstructions; // how the message will be sent from the replyThroughRouter to us
|
||||||
// unused and undocumented
|
// unused and undocumented
|
||||||
//private Certificate _replyBlockCertificate;
|
//private Certificate _replyBlockCertificate;
|
||||||
//private long _replyBlockMessageId;
|
//private long _replyBlockMessageId;
|
||||||
@@ -100,8 +101,10 @@ class GarlicConfig {
|
|||||||
* no reply is expected.
|
* no reply is expected.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
/****
|
||||||
public void setRequestAck(boolean request) { _requestAck = request; }
|
public void setRequestAck(boolean request) { _requestAck = request; }
|
||||||
public boolean getRequestAck() { return _requestAck; }
|
public boolean getRequestAck() { return _requestAck; }
|
||||||
|
****/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify the router through which a reply to this clove can be sent. The
|
* Specify the router through which a reply to this clove can be sent. The
|
||||||
@@ -109,8 +112,10 @@ class GarlicConfig {
|
|||||||
* and it them uses those to send the reply to this router.
|
* and it them uses those to send the reply to this router.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
/****
|
||||||
public void setReplyThroughRouter(RouterInfo replyThroughRouter) { _replyThroughRouter = replyThroughRouter; }
|
public void setReplyThroughRouter(RouterInfo replyThroughRouter) { _replyThroughRouter = replyThroughRouter; }
|
||||||
public RouterInfo getReplyThroughRouter() { return _replyThroughRouter; }
|
public RouterInfo getReplyThroughRouter() { return _replyThroughRouter; }
|
||||||
|
****/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify how any reply will be routed so that it reaches this router after being
|
* Specify how any reply will be routed so that it reaches this router after being
|
||||||
@@ -119,8 +124,10 @@ class GarlicConfig {
|
|||||||
* the replyThrough router
|
* the replyThrough router
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
/****
|
||||||
public void setReplyInstructions(DeliveryInstructions instructions) { _replyInstructions = instructions; }
|
public void setReplyInstructions(DeliveryInstructions instructions) { _replyInstructions = instructions; }
|
||||||
public DeliveryInstructions getReplyInstructions() { return _replyInstructions; }
|
public DeliveryInstructions getReplyInstructions() { return _replyInstructions; }
|
||||||
|
****/
|
||||||
|
|
||||||
/****
|
/****
|
||||||
public long getReplyBlockMessageId() { return _replyBlockMessageId; }
|
public long getReplyBlockMessageId() { return _replyBlockMessageId; }
|
||||||
@@ -164,9 +171,9 @@ class GarlicConfig {
|
|||||||
//buf.append("<replyBlockCertificate>").append(getReplyBlockCertificate()).append("</replyBlockCertificate>").append(NL);
|
//buf.append("<replyBlockCertificate>").append(getReplyBlockCertificate()).append("</replyBlockCertificate>").append(NL);
|
||||||
//buf.append("<replyBlockExpiration>").append(new Date(getReplyBlockExpiration())).append("</replyBlockExpiration>").append(NL);
|
//buf.append("<replyBlockExpiration>").append(new Date(getReplyBlockExpiration())).append("</replyBlockExpiration>").append(NL);
|
||||||
//buf.append("<replyBlockMessageId>").append(getReplyBlockMessageId()).append("</replyBlockMessageId>").append(NL);
|
//buf.append("<replyBlockMessageId>").append(getReplyBlockMessageId()).append("</replyBlockMessageId>").append(NL);
|
||||||
buf.append("<replyInstructions>").append(getReplyInstructions()).append("</replyInstructions>").append(NL);
|
//buf.append("<replyInstructions>").append(getReplyInstructions()).append("</replyInstructions>").append(NL);
|
||||||
buf.append("<replyThroughRouter>").append(getReplyThroughRouter()).append("</replyThroughRouter>").append(NL);
|
//buf.append("<replyThroughRouter>").append(getReplyThroughRouter()).append("</replyThroughRouter>").append(NL);
|
||||||
buf.append("<requestAck>").append(getRequestAck()).append("</requestAck>").append(NL);
|
//buf.append("<requestAck>").append(getRequestAck()).append("</requestAck>").append(NL);
|
||||||
buf.append(getSubData());
|
buf.append(getSubData());
|
||||||
buf.append("<subcloves>").append(NL);
|
buf.append("<subcloves>").append(NL);
|
||||||
for (int i = 0; i < getCloveCount(); i++)
|
for (int i = 0; i < getCloveCount(); i++)
|
||||||
|
@@ -121,7 +121,6 @@ class OutboundClientMessageJobHelper {
|
|||||||
config.setId(ctx.random().nextLong(I2NPMessage.MAX_ID_VALUE));
|
config.setId(ctx.random().nextLong(I2NPMessage.MAX_ID_VALUE));
|
||||||
config.setExpiration(expiration); // +2*Router.CLOCK_FUDGE_FACTOR);
|
config.setExpiration(expiration); // +2*Router.CLOCK_FUDGE_FACTOR);
|
||||||
config.setRecipientPublicKey(recipientPK);
|
config.setRecipientPublicKey(recipientPK);
|
||||||
config.setRequestAck(false);
|
|
||||||
|
|
||||||
if (log.shouldLog(Log.INFO))
|
if (log.shouldLog(Log.INFO))
|
||||||
log.info("Creating garlic config to be encrypted to " + recipientPK
|
log.info("Creating garlic config to be encrypted to " + recipientPK
|
||||||
|
@@ -725,8 +725,9 @@ public class OutboundClientMessageOneShotJob extends JobImpl {
|
|||||||
msg.setMessageExpiration(clove.getExpiration());
|
msg.setMessageExpiration(clove.getExpiration());
|
||||||
|
|
||||||
clove.setPayload(msg);
|
clove.setPayload(msg);
|
||||||
clove.setRecipientPublicKey(null);
|
// defaults
|
||||||
clove.setRequestAck(false);
|
//clove.setRecipientPublicKey(null);
|
||||||
|
//clove.setRequestAck(false);
|
||||||
|
|
||||||
_clove = clove;
|
_clove = clove;
|
||||||
_cloveId = _clove.getId();
|
_cloveId = _clove.getId();
|
||||||
|
@@ -51,7 +51,6 @@ class MessageWrapper {
|
|||||||
payload.setPayload(m);
|
payload.setPayload(m);
|
||||||
payload.setRecipient(to);
|
payload.setRecipient(to);
|
||||||
payload.setDeliveryInstructions(instructions);
|
payload.setDeliveryInstructions(instructions);
|
||||||
payload.setRequestAck(false);
|
|
||||||
payload.setExpiration(m.getMessageExpiration());
|
payload.setExpiration(m.getMessageExpiration());
|
||||||
|
|
||||||
SessionKeyManager skm;
|
SessionKeyManager skm;
|
||||||
|
@@ -124,7 +124,6 @@ class TestJob extends JobImpl {
|
|||||||
payload.setPayload(m);
|
payload.setPayload(m);
|
||||||
payload.setRecipient(getContext().router().getRouterInfo());
|
payload.setRecipient(getContext().router().getRouterInfo());
|
||||||
payload.setDeliveryInstructions(instructions);
|
payload.setDeliveryInstructions(instructions);
|
||||||
payload.setRequestAck(false);
|
|
||||||
payload.setExpiration(m.getMessageExpiration());
|
payload.setExpiration(m.getMessageExpiration());
|
||||||
|
|
||||||
SessionKey encryptKey = getContext().keyGenerator().generateSessionKey();
|
SessionKey encryptKey = getContext().keyGenerator().generateSessionKey();
|
||||||
|
@@ -121,7 +121,6 @@ public class BuildTestMessageJob extends JobImpl {
|
|||||||
config.setId(getContext().random().nextLong(I2NPMessage.MAX_ID_VALUE));
|
config.setId(getContext().random().nextLong(I2NPMessage.MAX_ID_VALUE));
|
||||||
config.setExpiration(_timeoutMs+getContext().clock().now()+2*Router.CLOCK_FUDGE_FACTOR);
|
config.setExpiration(_timeoutMs+getContext().clock().now()+2*Router.CLOCK_FUDGE_FACTOR);
|
||||||
config.setRecipient(_target);
|
config.setRecipient(_target);
|
||||||
config.setRequestAck(false);
|
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
@@ -151,7 +150,6 @@ public class BuildTestMessageJob extends JobImpl {
|
|||||||
ackClove.setId(getContext().random().nextLong(I2NPMessage.MAX_ID_VALUE));
|
ackClove.setId(getContext().random().nextLong(I2NPMessage.MAX_ID_VALUE));
|
||||||
ackClove.setPayload(msg);
|
ackClove.setPayload(msg);
|
||||||
ackClove.setRecipient(_target);
|
ackClove.setRecipient(_target);
|
||||||
ackClove.setRequestAck(false);
|
|
||||||
|
|
||||||
return ackClove;
|
return ackClove;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user