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 cc3000_hostdriver_mbedsocket by
Diff: Socket/Endpoint.cpp
- Revision:
- 16:f3676ae62f96
- Parent:
- 13:5e36c267e62f
- Parent:
- 12:1c2a856c618a
- Child:
- 17:14b6a3a2b622
--- a/Socket/Endpoint.cpp Wed Oct 02 15:29:26 2013 +0000 +++ b/Socket/Endpoint.cpp Wed Oct 02 16:00:41 2013 +0000 @@ -93,7 +93,7 @@ if (result != 4) { //Resolve DNS address or populate hard-coded IP address uint32_t address_integer; - _cc3000_module->_socket.get_host_by_name((uint8_t *)host, strlen(host) , &address_integer); + _cc3000_module->_socket.gethostbyname((uint8_t *)host, strlen(host) , &address_integer); uint32_t ip = 0; ip = (ip | (address_integer >> 24)); @@ -116,7 +116,7 @@ int((_remote_host.sin_addr.s_addr & 0xFF0000) >> 16), int((_remote_host.sin_addr.s_addr & 0xFF000000) >> 24)); DBG_SOCKET("port: %d", port); - + return 0; }