Socket::close() now supports an additional parameter for defining the shutdown type

Fork of Socket by mbed official

Revision:
20:6bf8566b40c8
Parent:
17:c5089d058eab
--- a/Socket.h	Mon Aug 19 18:38:18 2013 +0300
+++ b/Socket.h	Thu Mar 05 20:55:36 2015 +0000
@@ -67,8 +67,9 @@
     
     /** Close the socket
         \param shutdown   free the left-over data in message queues
+        \param shutdown_type which channels will be closed (\ref SHUT_RD, \ref SHUT_WR or \ref SHUT_RDWR)
      */
-    int close(bool shutdown=true);
+    int close(bool shutdown=true, int shutdown_type=SHUT_RDWR);
     
     ~Socket();