On Fri, 30 Mar 2007, 朻帡瑟 wrote:
On Fri, 30 Mar 2007, 朻帡瑟 wrote:
void
sys_timeout(u32_t msecs, sys_timeout_handler h, void *arg)
 register a handle for timeout .   but where can find the function,
we call it for timeout check and call the timeout handle registered
by sys_timeout().

  See src/core/sys.c, inside sys_mbox_fetch() and sys_sem_wait():

        .
        .
        h(arg);
        .
        .
Did you mean that ,lwip doesn't define  time_check_function()  for time
check .

  If I understand the code correctly, the time_check_function() you referred
is embeded in sys_mbox_fetch()/sys_sem_wait().

 But we can edit sys_mbox_fetch()  to our
Own_Time_Check_Function(),for time check and call timeout handle .

  That's what sys_timeout() for: user application arms a timeout handler
and the lwIP calls back.

--
Cheers,

Tai-hwa Liang
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to