lwip-users
[Top][All Lists]
Advanced

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

re: [lwip-users] lwip UDP. ( newbie questions )


From: address@hidden
Subject: re: [lwip-users] lwip UDP. ( newbie questions )
Date: Tue, 17 Nov 2009 10:22:27 +0100

SergeV wrote:
> 1) Rawapi.txt document state that
> - etharp_init()
> Initializes the ARP table and queue.
> 
> I believe it does nothing, should not be called (anymore)
> and removed from the doc. Am I correct?

Current lwIP versions have a lwip_init() function that
initializes everithing as needed. It takes care to call
etharp_init() too.

> 2) I must call periodically etharp_tmr() and tcp_tmr() if
> I need TCP. I need UDP data exchange only. Shall I call
> anything periodically other than etharp_tmr() ?

If you don't use TCP (and it's deactivated in your
lwipopts.h) you don't have to call tcp_tmr().

> Could somebody show me a trivial working sample code for
> UDP-only lwip driver (raw api, raw machine: no OS). For
> example I'm a bit confused about netif_add() use:  -
> netif_add() method has an argument "input" - I guessed I
> sould put there pointer to my implementation of
> ethernetif_input() - but there inside ethernetif_input()
> sample is a call "netif->input(p, netif)" -- infinite
> loop.

Luca





reply via email to

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