Esempio n. 1
0
 /// <summary>
 /// Allows the intervals between retransmission to be specified.
 /// </summary>
 /// <param name="com">
 /// If not null, its method <code>retransmit()</code> will be called when a message
 /// needs to be retransmitted (called by the Retransmitter).
 /// </param>
 /// <param name="interval">Array of intervals between retransmissions</param>
 public AckSenderWindow(RetransmitCommand com, long[] interval)
 {
     retransmitter=new Retransmitter(null, this);
     retransmit_command=com;
     this.interval=interval;
     retransmitter.setRetransmitTimeouts(interval);
 }
Esempio n. 2
0
 /// <summary>
 /// Allows the intervals between retransmission to be specified.
 /// </summary>
 /// <param name="com">
 /// If not null, its method <code>retransmit()</code> will be called when a message
 /// needs to be retransmitted (called by the Retransmitter).
 /// </param>
 /// <param name="interval">Array of intervals between retransmissions</param>
 public AckSenderWindow(RetransmitCommand com, long[] interval)
 {
     retransmitter      = new Retransmitter(null, this);
     retransmit_command = com;
     this.interval      = interval;
     retransmitter.setRetransmitTimeouts(interval);
 }
Esempio n. 3
0
 /// <summary>
 /// Sets the invervals between retransmit requests
 /// </summary>
 /// <param name="timeouts">Invervals between retransmit requests</param>
 public void setRetransmitTimeouts(long[] timeouts)
 {
     if (retransmitter != null)
     {
         retransmitter.setRetransmitTimeouts(timeouts);
     }
 }