Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of DnsQuery by
Diff: DnsQuery.cpp
- Revision:
- 4:3749346dcd59
- Parent:
- 3:5705fdae6185
- Child:
- 5:d85c1a7e0e9f
--- a/DnsQuery.cpp Thu Aug 27 14:33:07 2015 +0000
+++ b/DnsQuery.cpp Mon Feb 22 19:31:19 2016 -0600
@@ -15,8 +15,9 @@
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include "mbed.h"
#include "DnsQuery.h"
+#include <stdio.h>
+#include <string.h>
//Debug is disabled by default
#if 0
@@ -45,7 +46,7 @@
bool DnsQuery::getHostByName(const char* hostname, char* resolvedIp)
{
- char * dnsIPs[] = {
+ const char * dnsIPs[] = {
"8.8.8.8",
"209.244.0.3",
"84.200.69.80",
@@ -220,4 +221,4 @@
c+= RDLENGTH;
return false;
-}
\ No newline at end of file
+}
