Keith Ruenheck / MTS-Socket

Dependencies:   HTTPClient-SSL

Fork of MTS-Socket by MultiTech

Files at this revision

API Documentation at this revision

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();