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: cc3000_socket.cpp
- Revision:
- 16:f3676ae62f96
- Parent:
- 13:5e36c267e62f
- Parent:
- 12:1c2a856c618a
- Child:
- 20:30b6ed7bf8fd
--- a/cc3000_socket.cpp Wed Oct 02 15:29:26 2013 +0000
+++ b/cc3000_socket.cpp Wed Oct 02 16:00:41 2013 +0000
@@ -347,7 +347,7 @@
}
}
-int32_t cc3000_socket::get_sockopt (int32_t sd, int32_t level, int32_t optname, void *optval, socklen_t *optlen) {
+int32_t cc3000_socket::getsockopt (int32_t sd, int32_t level, int32_t optname, void *optval, socklen_t *optlen) {
uint8_t *ptr, *args;
tBsdGetSockOptReturnParams tRetParams;
@@ -534,12 +534,7 @@
#ifndef CC3000_TINY_DRIVER
-
int32_t cc3000_socket::gethostbyname(uint8_t *hostname, uint16_t name_length, uint32_t *out_ip_addr) {
- return (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;
@@ -571,7 +566,7 @@
return (errno);
}
-int32_t cc3000_socket::set_sockopt(int32_t sd, int32_t level, int32_t optname, const void *optval, socklen_t optlen) {
+int32_t cc3000_socket::setsockopt(int32_t sd, int32_t level, int32_t optname, const void *optval, socklen_t optlen) {
int32_t ret;
uint8_t *ptr, *args;
