embkernel
 All Classes Functions Variables Typedefs Groups Pages
NetClientDns.hpp
1 //------------------------------------------------------------------------------
2 //This file is part of embKernel.
3 //See license.txt for the full license governing this code.
4 //------------------------------------------------------------------------------
5 
6 #ifndef NET_CLIENT_DNS_HPP_
7 #define NET_CLIENT_DNS_HPP_
8 
9 #include "NetDefs.hpp"
10 #include "NetUdpSocket.hpp"
11 #include "RtosSemaphore.hpp"
12 
13 class NetClientDns {
14 private:
15  static NetUdpSocket sSocket;
16  static RtosSemaphore sSema;
17 
18  static void swapHeader(NetDefs::DNS_HEADER* header);
19 public:
20  static bool resolve(const char* name, NetDefs::IP_ADDR* ipAddr);
21 };
22 
23 #endif /* NET_CLIENT_DNS_HPP_ */