Changeset a855465


Ignore:
Timestamp:
Feb 5, 2017 2:55:13 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
9ab55ec
Parents:
83c786a
Message:

Streaming: Don't always send optional delay (ticket #1046)
javadocs

Location:
apps/streaming/java/src/net/i2p/client/streaming/impl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/streaming/java/src/net/i2p/client/streaming/impl/Connection.java

    r83c786a ra855465  
    389389            }
    390390            // WHY always set?
    391             packet.setFlag(Packet.FLAG_DELAY_REQUESTED);
     391            //packet.setFlag(Packet.FLAG_DELAY_REQUESTED);
    392392           
    393393            long timeout = _options.getRTO();
  • apps/streaming/java/src/net/i2p/client/streaming/impl/Packet.java

    r83c786a ra855465  
    334334    public Signature getOptionalSignature() { return _optionSignature; }
    335335
     336    /**
     337     * This also sets flag FLAG_SIGNATURE_INCLUDED
     338     */
    336339    public void setOptionalSignature(Signature sig) {
    337340        setFlag(FLAG_SIGNATURE_INCLUDED, sig != null);
     
    347350     * This sets the from field in the packet to the Destination for the session
    348351     * provided in the constructor.
     352     * This also sets flag FLAG_FROM_INCLUDED
    349353     */
    350354    public void setOptionalFrom() {
     
    361365    public int getOptionalDelay() { return _optionDelay; }
    362366
     367    /**
     368     * Caller must also call setFlag(FLAG_DELAY_REQUESTED)
     369     */
    363370    public void setOptionalDelay(int delayMs) {
    364371        if (delayMs > MAX_DELAY_REQUEST)
     
    376383     */
    377384    public int getOptionalMaxSize() { return _optionMaxSize; }
     385
     386    /**
     387     * This also sets flag FLAG_MAX_PACKET_SIZE_INCLUDED
     388     */
    378389    public void setOptionalMaxSize(int numBytes) {
    379390        setFlag(FLAG_MAX_PACKET_SIZE_INCLUDED, numBytes > 0);
Note: See TracChangeset for help on using the changeset viewer.