"Lee, Botao" <[email protected]> wrote:
> In pretty much all the examples I found, a thread (say Thread IN) is
> created to service in-coming packages, either polling or getting notified by 
> the
> network interface. But I never found this thread/ or another thread
> servicing out-going packages.
> 
> Does this mean the application thread (Thread APP)is actually executing
> all the LWIP output functions?

No, outgoing packets are sent from the same thread that processes incoming 
packets. Either they are sent as a direct reaction to incoming packets (i.e. 
sent from the same call stack) or application threads can use tcpip_callback() 
(or any other mechanism if you want to implement it on your own) to get into 
the input-processing thread to send packets (or invoke any other 
non-threading-protected lwip function).

Simon
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to