Wraps the DNSRequest class from NetServices to be synchronous, which is easier to use.
Dependents: TwitPicExample SPIVFDclock RPC_mbed_client QRSS_Rx ... more
Diff: dnsresolve.h
- Revision:
- 1:3a3015287572
- Parent:
- 0:83c60912e03f
- Child:
- 2:097d4993dd1e
--- a/dnsresolve.h Fri Jan 07 21:45:38 2011 +0000 +++ b/dnsresolve.h Tue Jan 11 21:35:16 2011 +0000 @@ -1,6 +1,9 @@ #ifndef __DNSRESOLVE_H__ #define __DNSRESOLVE_H__ +#include "Timer.h" +#include "wait_api.h" + #include "DNSRequest.h" class DNSResolver { @@ -24,7 +27,7 @@ return addr; } - Timer tmr; + mbed::Timer tmr; tmr.start(); while (0==_completed) { Net::poll();