|
From: | Simon Goldschmidt |
Subject: | [lwip-devel] [task #7675] Enable to refuse data on a TCP_EVENT_RECV call |
Date: | Sun, 13 Jan 2008 14:52:56 +0000 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 |
Follow-up Comment #4, task #7675 (project lwip): Hmm, that sounds like it could work (although the pbuf_ref(recv_data) is not really needed). My solution (first calling pcb->recv and don't ack / stop to process the segment if pcp->recv returns an error) is really far more complex: TCP_EVENT_RECV would have to be called from tcp_receive instead of tcp_input for that (which would also be cleaner for debugging, I think). I wouldn't want to change that now that we have 1.3.0 nearly finished... _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/task/?7675> _______________________________________________ Nachricht geschickt von/durch Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |