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.
Fork of MTS-Socket by
Revision 19:f9a0041c4501, committed 2014-10-21
- Comitter:
- Vanger
- Date:
- Tue Oct 21 21:12:18 2014 +0000
- Parent:
- 18:119547e27ff1
- Child:
- 20:a74e92329ba6
- Child:
- 21:faff2c3248ec
- Commit message:
- Changed close() variable to match MBED socket API with a variable name of shutdown instead of clearBuffer.
Changed in this revision
| Socket.cpp | Show annotated file Show diff for this revision Revisions of this file |
| Socket.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Socket.cpp Tue Oct 21 17:27:23 2014 +0000
+++ b/Socket.cpp Tue Oct 21 21:12:18 2014 +0000
@@ -11,8 +11,8 @@
_timeout = timeout;
}
-int Socket::close(bool clearBuffer) {
- return (ip->close(clearBuffer)) ? 0 : -1;
+int Socket::close(bool shutdown) {
+ return (ip->close(shutdown)) ? 0 : -1;
}
Socket::~Socket() {
--- a/Socket.h Tue Oct 21 17:27:23 2014 +0000
+++ b/Socket.h Tue Oct 21 21:12:18 2014 +0000
@@ -20,7 +20,7 @@
/** Close the socket file descriptor
*/
- int close(bool clearBuffer = true);
+ int close(bool shutdown = true);
~Socket();
