NetServices Stack source
Dependents: HelloWorld ServoInterfaceBoardExample1 4180_Lab4
Diff: if/lwip/lwipNetDnsRequest.cpp
- Revision:
- 3:95e0bc00a1bb
- Parent:
- 2:a4f97773c90f
--- a/if/lwip/lwipNetDnsRequest.cpp Fri Jun 18 09:22:54 2010 +0000 +++ b/if/lwip/lwipNetDnsRequest.cpp Fri Jun 18 10:38:57 2010 +0000 @@ -56,7 +56,6 @@ void LwipNetDnsRequest::poll() { err_t err; - dnsTick(); switch(m_state) { case LWIPNETDNS_START: //First req, let's call dns_gethostbyname @@ -149,21 +148,5 @@ return pMe->foundCb( name, ipaddr ); } -void LwipNetDnsRequest::dnsTick() -{ - static Timer* pTmr = NULL; - if(!pTmr) - { - pTmr = new Timer; - pTmr->start(); - } - if(pTmr->read_ms() >= DNS_TMR_INTERVAL) - { - pTmr->reset(); - dns_tmr(); - DBG("DNS Tick\n"); - } -} - #endif