Re: [lwip-users] idle connection timeout

2014-09-22 Thread mobin.seven
Is such thing possible to do in Socket API? Help please. -- View this message in context: http://lwip.100.n7.nabble.com/idle-connection-timeout-tp23252p23325.html Sent from the lwip-users mailing list archive at Nabble.com. ___ lwip-users mailing

Re: [lwip-users] poll-function not called

2014-09-22 Thread mobin.seven
Hi lad tcp_tmr() must be called every TCP_TMR_INTERVAL milliseconds.this is necessary for poll callback. -- View this message in context: http://lwip.100.n7.nabble.com/poll-function-not-called-tp23324p23326.html Sent from the lwip-users mailing list archive at Nabble.com.

Re: [lwip-users] poll-function not called

2014-09-22 Thread Karl Karpfen
OK, thanks, this leaded me into the correct direction: Texas Instrumetns has implemented full poll-functionality but they have set both NO_SYS and NO_SYS_NO_TIMERS to 1 which disables the timers completely. One of both seems to be wrong/superfluid for me... 2014-09-22 9:31 GMT+02:00 mobin.seven

Re: [lwip-users] Context of poll and recv?

2014-09-22 Thread Karl Karpfen
Sergio, reception is not the problem but transmission. Here I learned I can't enqueue data fgrom main loop directly. Meanwhile I'm setting a similar flag and collect all my data from within transmission IRQ context - which works fine. Karl 2014-09-17 15:03 GMT+02:00 Sergio R. Caprile

Re: [lwip-users] poll-function not called

2014-09-22 Thread mobin.seven
Karl Karpfen wrote OK, thanks, this leaded me into the correct direction: Texas Instrumetns has implemented full poll-functionality but they have set both NO_SYS and NO_SYS_NO_TIMERS to 1 which disables the timers completely. One of both seems to be wrong/superfluid for me... I think you

Re: [lwip-users] poll-function not called

2014-09-22 Thread Sergio R. Caprile
You could try the way we vendor-agnostic use the stack: Once you set NO_SYS_NO_TIMERS = 0, add a call to sys_check_timeouts() in your main loop. This is the 1.4 way of checking all the timers, including DHCP. This should take care of TCP and so calling your poll function callback for your

Re: [lwip-users] poll-function not called

2014-09-22 Thread Simon Goldschmidt
Sergio R. Caprile wrote: You could try the way we vendor-agnostic use the stack: Once you set NO_SYS_NO_TIMERS = 0, add a call to sys_check_timeouts() in your main loop. This is the 1.4 way of checking all the timers, including DHCP. This should take care of TCP and so calling your poll

Re: [lwip-users] poll-function not called

2014-09-22 Thread Sergio R. Caprile
Yes Simon, it was Karl. Maybe that is the reason why TI disabled the timers... I would have expected that from a teenager, not from TI... anyway, Karl said he was buffering at interrupts and calling lwIP at main loop (or so I understood). So... Karl: you must call sys_check_timeouts() from the