cc3000 hostdriver with the mbed socket interface

Dependents:   cc3000_hello_world_demo cc3000_simple_socket_demo cc3000_ntp_demo cc3000_ping_demo ... more

Revision:
11:5e3771b29385
Parent:
5:245ac5b73132
Child:
12:1c2a856c618a
Child:
13:5e36c267e62f
--- a/cc3000_socket.cpp	Tue Oct 01 04:41:47 2013 +0000
+++ b/cc3000_socket.cpp	Tue Oct 01 21:17:44 2013 +0000
@@ -534,6 +534,11 @@
 
 
 #ifndef CC3000_TINY_DRIVER
+
+int32_t cc3000_socket::gethostbyname(uint8_t *hostname, uint16_t name_length, uint32_t *out_ip_addr) {
+    get_host_by_name(hostname, name_length, out_ip_addr);
+}
+
 int32_t cc3000_socket::get_host_by_name(uint8_t *hostname, uint16_t name_length, uint32_t *out_ip_addr) {
     tBsdGethostbynameParams ret;
     uint8_t *ptr, *args;