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.
Diff: Socket.cpp
- Revision:
- 27:f51358e506c1
- Parent:
- 26:0f614f1d0398
- Child:
- 33:2fd212f8da61
--- a/Socket.cpp Tue Apr 19 18:24:57 2016 -0500
+++ b/Socket.cpp Tue Apr 19 18:25:12 2016 -0500
@@ -89,22 +89,23 @@
_timeout = timeout;
}
-int Socket::set_option(int optname, const void *optval, unsigned int optlen)
+int Socket::setsockopt(int level, int optname, const void *optval, unsigned optlen)
{
if (!_socket) {
return NSAPI_ERROR_NO_SOCKET;
}
- return _iface->socket_set_option(_socket, optname, optval, optlen);
+ return _iface->setsockopt(_socket, level, optname, optval, optlen);
}
-int Socket::get_option(int optname, void *optval, unsigned int *optlen)
+int Socket::getsockopt(int level, int optname, void *optval, unsigned *optlen)
{
if (!_socket) {
return NSAPI_ERROR_NO_SOCKET;
}
- return _iface->socket_get_option(_socket, optname, optval, optlen);
+ return _iface->getsockopt(_socket, level, optname, optval, optlen);
+
}
void Socket::thunk(void *data)