lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [task #7675] Enable to refuse data on a TCP_EVENT_RECV call


From: Frédéric Bernon
Subject: [lwip-devel] [task #7675] Enable to refuse data on a TCP_EVENT_RECV call
Date: Sun, 13 Jan 2008 17:11:14 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11

Follow-up Comment #7, task #7675 (project lwip):

If you want to test it, add these lines in httpd.c, line 156

  if (err == ERR_OK && p != NULL) {

  { static int recv_cnt = 0;
    recv_cnt++;
    if (recv_cnt%2) {
      return ERR_MEM;
    }
  }
    /* Inform TCP that we have taken the data. */
    tcp_recved(pcb, p->tot_len);


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?7675>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]