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.
Dependencies: lwip-eth lwip-sys lwip
Fork of LWIPInterface by
Diff: LWIPInterface.cpp
- Revision:
- 18:5890b186a607
- Parent:
- 17:7db2f5d503d4
--- a/LWIPInterface.cpp Tue Apr 19 18:38:13 2016 -0500 +++ b/LWIPInterface.cpp Wed Apr 20 00:48:19 2016 +0000 @@ -169,6 +169,7 @@ udp_recv(s->udp, udp_recv_irq, s); *handle = s; + return 0; case NSAPI_TCP: s->proto = proto; @@ -180,6 +181,7 @@ tcp_arg(s->tcp, s); //tcp_err(s->tcp, tcp_error_irq); *handle = s; + return 0; } return NSAPI_ERROR_DEVICE_ERROR; @@ -273,11 +275,6 @@ return 0; } - -bool LWIPInterface::socket_is_connected(void *handle) -{ - return true; -} int LWIPInterface::socket_accept(void **handle, void *server) {