Keith Bryer / udpBroadcastSocket
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers udpBroadcastSocket.h Source File

udpBroadcastSocket.h

00001 #ifndef UDPBROADCASTSOCKET_H
00002 #define UDPBROADCASTSOCKET_H
00003 
00004 #include "Socket/UDPSocket.h"
00005 #include <cstdint>
00006 
00007 /**
00008 UDP Broadcast Socket
00009     // Allows one-to-many communication over ethernet
00010     // Override an UDP Socket with additional flag
00011     // when initing or binding a port use init(SO_BROADCAST) or bind(port,SO_BROADCAST) respectively.
00012     // Note multicasting many be more suitable for some applications, but isn't support by this socket.
00013 */
00014 class UDPBroadcastSocket : public UDPSocket {
00015 
00016 public:
00017     int init(int optionFlags); 
00018     int bind(int port,int optionFlags);
00019 };
00020 #endif