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.
Dependents: BSDInterfaceTests HelloBSDInterface
Revision 6:363dd62309cf, committed 2016-04-01
- Comitter:
- geky
- Date:
- Fri Apr 01 17:30:01 2016 +0000
- Parent:
- 5:1af10f9d9404
- Commit message:
- Matched changes to NSAPI
Changed in this revision
| BSDInterface.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/BSDInterface.cpp Thu Feb 25 19:10:07 2016 -0600
+++ b/BSDInterface.cpp Fri Apr 01 17:30:01 2016 +0000
@@ -155,7 +155,7 @@
return NS_ERROR_DEVICE_ERROR;
}
- return 0;
+ return size;
}
int32_t BSDInterface::BSDSocket::recv(void *data, uint32_t size)
@@ -165,7 +165,7 @@
if (ret > 0) {
return ret;
} else if (errno == EAGAIN) {
- return 0;
+ return NS_ERROR_WOULD_BLOCK;
} else {
return NS_ERROR_DEVICE_ERROR;
}