/[lwip]/lwip/src/core/tcp.c
ViewVC logotype

Diff of /lwip/src/core/tcp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.31 by likewise, Wed Jun 11 22:11:42 2003 UTC revision 1.31.2.1 by marcbou, Thu Jun 19 12:45:32 2003 UTC
# Line 106  tcp_init(void) Line 106  tcp_init(void)
106  void  void
107  tcp_tmr(void)  tcp_tmr(void)
108  {  {
109    ++tcp_timer;    /* Call tcp_fasttmr() every 250 ms */
110    if (tcp_timer == 10) {    tcp_fasttmr();
111      tcp_timer = 0;  
112    }    if (++tcp_timer & 1) {
113          /* Call tcp_tmr() every 500 ms, i.e., every other timer
   if (tcp_timer & 1) {  
     /* Call tcp_fasttmr() every 200 ms, i.e., every other timer  
        tcp_tmr() is called. */  
     tcp_fasttmr();  
   }  
   if (tcp_timer == 0 || tcp_timer == 5) {  
     /* Call tcp_slowtmr() every 500 ms, i.e., every fifth timer  
114         tcp_tmr() is called. */         tcp_tmr() is called. */
115      tcp_slowtmr();      tcp_slowtmr();
116    }    }
# Line 626  tcp_slowtmr(void) Line 619  tcp_slowtmr(void)
619  /*  /*
620   * tcp_fasttmr():   * tcp_fasttmr():
621   *   *
622   * Is called every TCP_FINE_TIMEOUT (100 ms) and sends delayed ACKs.   * Is called every TCP_FAST_INTERVAL (250 ms) and sends delayed ACKs.
623   */   */
624  /*-----------------------------------------------------------------------------------*/  /*-----------------------------------------------------------------------------------*/
625  void  void

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.31.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26