[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-users] tcp_poll(), event handlers and possible misinformation
From: |
Bill Auerbach |
Subject: |
RE: [lwip-users] tcp_poll(), event handlers and possible misinformation |
Date: |
Wed, 1 Jul 2009 10:25:05 -0400 |
>When a connection is idle (i.e., no data is either transmitted or
>received), lwIP will repeatedly poll the application by calling a
>specified callback function. This can be used either as a watchdog
>timer for killing connections that have stayed idle for too long, or
>as a method of waiting for memory to become available. For instance,
>if a call to tcp_write() has failed because memory wasn't available,
>the application may use the polling functionality to call tcp_write()
>again when the connection has been idle for a while.
Maybe this is legacy now. If tcp_write cannot send data, it will be called
by the stack when data can be sent.
Or empirically, I don't use tcp_poll (it gave me problems) and I don't have
memory to send 500k at once. tcp_sent is simply called until I am able to
send all of my data.
Bill
- [lwip-users] tcp_poll(), event handlers and possible misinformation, Lou Cypher, 2009/07/01
- Re: [lwip-users] tcp_poll(), event handlers and possible misinformation, Kieran Mansley, 2009/07/01
- Re: [lwip-users] tcp_poll(), event handlers and possible misinformation, Lou Cypher, 2009/07/01
- Re: [lwip-users] tcp_poll(), event handlers and possible misinformation, Jeff Barber, 2009/07/01
- Re: [lwip-users] tcp_poll(), event handlers and possible misinformation, Lou Cypher, 2009/07/01
- Re: [lwip-users] tcp_poll(), event handlers and possible misinformation, address@hidden, 2009/07/01
- Re: [lwip-users] tcp_poll(), event handlers and possible misinformation, Lou Cypher, 2009/07/01
- Re: [lwip-users] tcp_poll(), event handlers and possible misinformation, address@hidden, 2009/07/01
- Re: [lwip-users] tcp_poll(), event handlers and possible misinformation, Lou Cypher, 2009/07/02
- RE: [lwip-users] tcp_poll(), event handlers and possible misinformation, Bill Auerbach, 2009/07/01
RE: [lwip-users] tcp_poll(), event handlers and possible misinformation,
Bill Auerbach <=