Modified wrapper for UDP socket allowing broadcast packets using the new network stack.

Revision:
0:45f2ef9eadb6
diff -r 000000000000 -r 45f2ef9eadb6 udpBroadcastSocket.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/udpBroadcastSocket.h	Fri Jan 04 18:09:53 2013 +0000
@@ -0,0 +1,20 @@
+#ifndef UDPBROADCASTSOCKET_H
+#define UDPBROADCASTSOCKET_H
+
+#include "Socket/UDPSocket.h"
+#include <cstdint>
+
+/**
+UDP Broadcast Socket
+    // Allows one-to-many communication over ethernet
+    // Override an UDP Socket with additional flag
+    // when initing or binding a port use init(SO_BROADCAST) or bind(port,SO_BROADCAST) respectively.
+    // Note multicasting many be more suitable for some applications, but isn't support by this socket.
+*/
+class UDPBroadcastSocket : public UDPSocket {
+
+public:
+    int init(int optionFlags); 
+    int bind(int port,int optionFlags);
+};
+#endif
\ No newline at end of file