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: HelloWizFi250Interface
Fork of NetworkSocketAPI by
Revision 49:85fe0b99948d, committed 2016-02-25
- Comitter:
- Christopher Haster
- Date:
- Thu Feb 25 03:48:58 2016 -0600
- Branch:
- api-changes
- Parent:
- 48:b3bbe28a7963
- Child:
- 50:3fa3b0405df9
- Commit message:
- Fixed naming collision
Changed in this revision
| Socket.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Socket.cpp Thu Feb 25 03:13:26 2016 -0600
+++ b/Socket.cpp Thu Feb 25 03:48:58 2016 -0600
@@ -156,10 +156,10 @@
}
while (true) {
- int32_t size = _socket->recv(data, size);
+ int32_t recv = _socket->recv(data, size);
- if (size != 0 || !blocking) {
- return size;
+ if (recv != 0 || !blocking) {
+ return recv;
}
}
}
