Socket interface for C027Interface. Implements the NetworkSocketAPI
Dependencies: C027_Support
Dependents: HelloC027Interface U_Blox_DeviceConnector U_Blox_DeviceConnector U-Blox_Client
Fork of LWIPInterface by
Diff: C027Interface.h
- Revision:
- 20:be7a08046b6d
- Parent:
- 17:3f1e33e638a4
- Child:
- 21:0c4d90bc84af
--- a/C027Interface.h Fri Mar 24 19:32:12 2017 +0000 +++ b/C027Interface.h Mon Mar 27 15:57:50 2017 +0000 @@ -119,8 +119,7 @@ * @note This call is not-blocking, if this call would block, must * immediately return NSAPI_ERROR_WOULD_WAIT */ - virtual nsapi_error_t socket_accept(nsapi_socket_t server, - nsapi_socket_t *handle, SocketAddress *address=0); + virtual int socket_accept(void **handle, void *server); /** Send data to the remote host * @param handle Socket handle * @param data The buffer to send to the host @@ -186,6 +185,7 @@ // Modem object bool _debug; MDMSerial *_mdm; + bool running; SocketAddress _ip_address; char _mac_address[NSAPI_MAC_SIZE]; char _pin[sizeof "1234"]; @@ -194,7 +194,9 @@ char _password[25]; Thread _thread; void (*_callback)(void *); void *_data; - void _run(); + void *_handle; + void socket_check(); + void event(); }; #endif