summaryrefslogtreecommitdiff
path: root/src/udpsocket.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-01-20 15:36:24 +0000
committerMike Buland <eichlan@xagasoft.com>2011-01-20 15:36:24 +0000
commit400f12a9d100d48509a48188fcff7f1b820d5826 (patch)
tree4f83145ea62926da06561c287d9a78ffd6f36bba /src/udpsocket.h
parente3bd8a39947097a3130a4064a4b1ff6981a03c63 (diff)
downloadlibbu++-400f12a9d100d48509a48188fcff7f1b820d5826.tar.gz
libbu++-400f12a9d100d48509a48188fcff7f1b820d5826.tar.bz2
libbu++-400f12a9d100d48509a48188fcff7f1b820d5826.tar.xz
libbu++-400f12a9d100d48509a48188fcff7f1b820d5826.zip
Ummm...it's a udpsocket, mostly. It seems like it should work, but early tests
are failing...
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