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 mbed-client-classic by
Diff: source/m2mconnectionhandler.cpp
- Revision:
- 12:dc778194504d
- Parent:
- 1:2dc916e504c9
--- a/source/m2mconnectionhandler.cpp Sat Apr 02 15:59:45 2016 +0300
+++ b/source/m2mconnectionhandler.cpp Thu Apr 07 01:58:44 2016 +0300
@@ -62,9 +62,9 @@
return _private_impl->send_to_socket(buf, len);
}
-int M2MConnectionHandler::receive_from_socket(unsigned char *buf, size_t len)
+int M2MConnectionHandler::receive_from_socket(unsigned char *buf, size_t len, uint32_t timeout)
{
- return _private_impl->receive_from_socket(buf, len);
+ return _private_impl->receive_from_socket(buf, len,timeout);
}
bool M2MConnectionHandler::send_data(uint8_t *data,
@@ -78,3 +78,9 @@
{
_private_impl->handle_connection_error(error);
}
+
+void M2MConnectionHandler::set_platform_network_handler(void *handler)
+{
+ _private_impl->set_platform_network_handler(handler);
+}
+
