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

Fork of Socket by mbed official

Revision:
18:d56496360fc9
Parent:
16:2d471deff212
Child:
19:434906b5b977
--- a/UDPSocket.h	Tue May 14 09:48:07 2013 +0000
+++ b/UDPSocket.h	Thu May 30 17:15:01 2013 +0100
@@ -54,7 +54,7 @@
     /** Set the socket in broadcasting mode
     \return 0 on success, -1 on failure.
     */
-    int set_broadcasting(void);
+    int set_broadcasting(bool broadcast=true);
     
     /** Send a packet to a remote endpoint
     \param remote   The remote endpoint