[Top][All Lists]

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

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

From: Sergio R. Caprile
Subject: Re: [lwip-users] tcp_tmr and timers.c
Date: Mon, 27 Oct 2014 09:37:55 -0300
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

All I can tell you, and I don't know if it suffices, is that you call
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 myfunction(something *myarg);

        sys_timeout(SEND_TIME, (sys_timeout_handler) myfunction, myarg);
        // callback gets called back on timeout;
        sys_untimeout((sys_timeout_handler) myfunction, myarg);       
// timer removed

reply via email to

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