aboutsummaryrefslogtreecommitdiff
path: root/src/udpsocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/udpsocket.h')
-rw-r--r--src/udpsocket.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/udpsocket.h b/src/udpsocket.h
index 4452458..0f81c38 100644
--- a/src/udpsocket.h
+++ b/src/udpsocket.h
@@ -13,7 +13,7 @@ namespace Bu
13 { 13 {
14 public: 14 public:
15 UdpSocket( int iUdpSocket ); 15 UdpSocket( int iUdpSocket );
16 UdpSocket( const Bu::FString &sAddr, int iPort, bool bBroadcast ); 16 UdpSocket( const Bu::FString &sAddr, int iPort, int iFlags );
17 virtual ~UdpSocket(); 17 virtual ~UdpSocket();
18 18
19 virtual void close(); 19 virtual void close();
@@ -46,12 +46,23 @@ namespace Bu
46 46
47 virtual void setSize( long iSize ); 47 virtual void setSize( long iSize );
48 48
49 enum {
50 // Flags
51 Read = 0x01, ///< Open udp socket for reading
52 Write = 0x02, ///< Open udp socket for writing
53 ReadWrite = 0x03, ///< Open for both read and write
54 Broadcast = 0x04, ///< Open for broadcast
55 };
56
57
49 private: 58 private:
50#ifdef WIN32 59#ifdef WIN32
51 unsigned int iUdpSocket; 60 unsigned int iUdpSocket;
52#else 61#else
53 int iUdpSocket; 62 int iUdpSocket;
54#endif 63#endif
64 void *paTarget;
65 bool bBound;
55 }; 66 };
56}; 67};
57 68