sandbox / mbed-client-classic

Fork of mbed-client-classic by Christopher Haster

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);
+}
+