/** default true */ public boolean getSendLeaseSet() { return getSendLeaseSet(_flags); }
/** * Low tag threshold. If less than this many, send more. * @return default 0, meaning unset, use the SKM config (default 30) */ public int getTagThreshold() { return getTagThreshold(_flags); }
/** * If we are low on tags, send this many. * @return default 0, meaning unset, use the SKM config (default 40) */ public int getTagsToSend() { return getTagsToSend(_flags); }
_log.debug("Sending " + data.length + " bytes to " + dest); SendMessageOptions opts = new SendMessageOptions(); if (!sendLeaseSet) opts.setSendLeaseSet(false); if (sendTags > 0) opts.setTagsToSend(sendTags); if (tagThreshold > 0) opts.setTagThreshold(tagThreshold); if (expiration > 0) opts.setDate(I2PAppContext.getGlobalContext().clock().now() + (expiration * 1000));
int tagsRequired = SendMessageOptions.getTagThreshold(sendFlags); boolean wantACK = _wantACK || shouldRequestReply || boolean allowLeaseBundle = SendMessageOptions.getSendLeaseSet(sendFlags) && (allow == null || Boolean.parseBoolean(allow)); if (allowLeaseBundle) { int tagsToSend = SendMessageOptions.getTagsToSend(sendFlags); GarlicMessage msg = OutboundClientMessageJobHelper.createGarlicMessage(getContext(), token, _overallExpiration, key,
SendMessageOptions opts = new SendMessageOptions(); opts.setDate(_context.clock().now() + 60*1000); opts.setTagsToSend(SEND_CRYPTO_TAGS); opts.setTagThreshold(LOW_CRYPTO_TAGS); opts.setGzip(false); if (!repliable) opts.setSendLeaseSet(false); try { boolean success = _session.sendMessage(dest, payload, 0, payload.length,
SendMessageOptions options = new SendMessageOptions(); if (expires > 0) options.setDate(expires); boolean listenForStatus = false; options.setSendLeaseSet(false); } else { options.setSendLeaseSet(false); options.setTagsToSend(sendTags); options.setTagThreshold(tagThresh); options.setGzip(packet.getPayloadSize() > 50); } else if (packet.isFlagSet(FLAGS_INITIAL_TAGS)) { if (con != null) { if (con.isInbound()) options.setSendLeaseSet(false); else if (ENABLE_STATUS_LISTEN) listenForStatus = true; options.setTagsToSend(sendTags); options.setTagThreshold(tagThresh); options.setGzip(packet.getPayloadSize() > 50); } else { if (con != null) { if (con.isInbound() && con.getLifetime() < 2*60*1000) options.setSendLeaseSet(false);
SendMessageOptions options = new SendMessageOptions(); if (expires > 0) options.setDate(expires); boolean listenForStatus = false; options.setSendLeaseSet(false); } else { options.setSendLeaseSet(false); options.setTagsToSend(sendTags); options.setTagThreshold(tagThresh); options.setGzip(packet.getPayloadSize() > 50); } else if (packet.isFlagSet(FLAGS_INITIAL_TAGS)) { if (con != null) { if (con.isInbound()) options.setSendLeaseSet(false); else if (ENABLE_STATUS_LISTEN) listenForStatus = true; options.setTagsToSend(sendTags); options.setTagThreshold(tagThresh); options.setGzip(packet.getPayloadSize() > 50); } else { if (con != null) { if (con.isInbound() && con.getLifetime() < 2*60*1000) options.setSendLeaseSet(false);