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:
- 11:82796df87b0a
- Parent:
- 8:cef01e812975
- Child:
- 12:899403b675fe
diff -r f0a1f6527def -r 82796df87b0a LWIPInterface.cpp
--- a/LWIPInterface.cpp Thu Mar 31 11:55:52 2016 +0000
+++ b/LWIPInterface.cpp Fri Apr 01 17:18:39 2016 +0000
@@ -185,7 +185,7 @@
}
}
- return 0;
+ return writtenLen;
}
int32_t LWIPInterface::LWIPSocket::recv(void *data, uint32_t size)
@@ -197,7 +197,7 @@
} else if (ret == 0) {
return NS_ERROR_NO_CONNECTION;
} else if (ret == -1) {
- return 0;
+ return NS_ERROR_WOULD_BLOCK;
} else {
return NS_ERROR_DEVICE_ERROR;
}
