private fork

Fork of GSwifiInterface by gs fan

Revision:
8:64184a968e3b
Parent:
5:78943b3945b5
--- a/Socket/Endpoint.cpp	Wed Jan 30 05:52:14 2013 +0000
+++ b/Socket/Endpoint.cpp	Thu Oct 31 06:41:45 2013 +0000
@@ -40,7 +40,7 @@
 int Endpoint::set_address(const char* host, const int port) {
     //Resolve DNS address or populate hard-coded IP address
     _port = port;
-    return _ewifi->gethostbyname(host, _ipAddress) == true ? 0 : -1;
+    return _ewifi->getHostByName(host, _ipAddress);
 }
 
 char* Endpoint::get_address() {