Azure IoT common library
Fork of azure_c_shared_utility by
Diff: tcpsocketconnection_c.cpp
- Revision:
- 34:651c23af382c
- Parent:
- 33:5f2a48fc7e5b
--- a/tcpsocketconnection_c.cpp Tue Aug 22 13:22:47 2017 +0100 +++ b/tcpsocketconnection_c.cpp Thu Aug 24 14:14:15 2017 +0100 @@ -2,10 +2,9 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "mbed.h" - #include <stddef.h> - #include "azure_c_shared_utility/tcpsocketconnection_c.h" +#include "azure_c_shared_utility/platform.h" typedef struct { TCPSocket* socket; @@ -15,7 +14,7 @@ TCPSOCKETCONNECTION_HANDLE tcpsocketconnection_create(void) { TCPSOCKETCONNECTION_HANDLE_T* conn = new TCPSOCKETCONNECTION_HANDLE_T; - conn->socket = new TCPSocket(); + conn->socket = new TCPSocket(platform_get_network_stack()); conn->connected = false; return conn; }