Hallo,

 

I'm using lwip 1.4.1 with sockets in a multithreaded system. Still I want to
use dns_gethostbyname directly because it is non-blocking.

I can't use getaddrinfo because it is blocking (furthermore it seems to have
problems, when lwip is reconfigured and dns_init is called a second time
during runtime, then it blocks forever, but that is another issue)

 

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?

 

Best regards,

Sandra

 

 

 

 

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

Reply via email to