[lwip-users] tcp_tmr and timers.c

2014-10-27 Thread Matthias Dübon
Hello everyone, I am diving into lwip and I have found the timers.c module. This module seems to be a nice possibility to setup the different timer (e.g. for arp, DHCP, ...). But I am wondering why is the call to tcp_tmr not included in timers.c? Are there any architectural reasons or do I

Re: [lwip-users] tcp_tmr and timers.c

2014-10-27 Thread Sergio R. Caprile
All I can tell you, and I don't know if it suffices, is that you call sys_check_timeouts(); in your main loop and all timing is done. Check your lwipopts.h for the number of timers if using dhcp, dns, etc. Should you need to use a timer for your own purposes: static void

Re: [lwip-users] tcp_tmr and timers.c

2014-10-27 Thread Matthias Dübon
Hi Sergio, calling sys_check_timeouts in the main loop does not suffice, cause the tcp_tmr is not activated in the timers.c module. For me the natural solution would be to add tcp_tmr activation to timers.c and then call sys_check_timeouts in my main loop. But I am not sure if there's a reasion

Re: [lwip-users] tcp_tmr and timers.c

2014-10-27 Thread Sergio R. Caprile
All my TCP examples and applications work, and I'm calling sys_check_timeouts(); so, if tcp_tmr is really not called, then something with the same functionality is being called. I do use NO_SYS=1 and have provided a working sys_now() function. DHCP and DNS timeouts are also handled through