On Thu, Apr 30, 2015 at 10:37 AM, Sandra Gilge <[email protected]> wrote:

> It is stated that dns_gethostbyname is for the raw-api. Is there a reason
> to use it in combination with sockets? Is there a thread safety issue?


AFAIR dns_gethostbyname  uses other tcpip thread only components, so using
it from outside this thread can be unsafe.

You can however post your callback to be executed on lwip thread - it is
usually sufficient (we use similar patter to handle incoming udp data via
callback in tcpiip thread instead of blocking with netconn).

Regards,
Krzysztof Wesołowski
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to