[Top][All Lists]

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

[lwip-users] problem with the DNS functions

From: toto.conseil
Subject: [lwip-users] problem with the DNS functions
Date: Tue, 21 Jun 2011 12:19:41 +0200 (CEST)


I use AVRstudio 2.7.0 with lwip1.3.2. 
I need to send query DNS so I use dns_init and netconn_gethostbyname. 

Here is my code for to send my query :


vTaskDelay(12000); //12sec 

sprintf(site,"name of web site"); //ex: "en.wikipedia.org" 

err=netconn_gethostbyname(site, &AddrFree);

I must use a delay ("vTaskDelay (12000);", 12sec)between the two functions 
otherwise it 
doesn't work.

Anyone know why it must have this delay?or another solution?

Thank you.

Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net

reply via email to

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