diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 17:48:45 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 17:48:45 +0000 |
commit | c259f95bd0e58b247940a339bb9b4b401b4e9438 (patch) | |
tree | 5ad7bc14bc3b70abbe700131ee519795fd83f150 /src/udpsocket.h | |
parent | d5709e74f66a7a0f8585e8dadeae3bfcd55da09d (diff) | |
download | libbu++-c259f95bd0e58b247940a339bb9b4b401b4e9438.tar.gz libbu++-c259f95bd0e58b247940a339bb9b4b401b4e9438.tar.bz2 libbu++-c259f95bd0e58b247940a339bb9b4b401b4e9438.tar.xz libbu++-c259f95bd0e58b247940a339bb9b4b401b4e9438.zip |
UdpSocket is pretty much working. Non-blocking mode isn't, which is odd, but
we can figure that out later.
Diffstat (limited to 'src/udpsocket.h')
-rw-r--r-- | src/udpsocket.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/udpsocket.h b/src/udpsocket.h index 0f81c38..253839a 100644 --- a/src/udpsocket.h +++ b/src/udpsocket.h | |||
@@ -16,13 +16,15 @@ namespace Bu | |||
16 | UdpSocket( const Bu::FString &sAddr, int iPort, int iFlags ); | 16 | UdpSocket( const Bu::FString &sAddr, int iPort, int iFlags ); |
17 | virtual ~UdpSocket(); | 17 | virtual ~UdpSocket(); |
18 | 18 | ||
19 | typedef uint32_t addr; | ||
20 | |||
21 | static Bu::FString addrToStr( const addr &a ); | ||
22 | |||
19 | virtual void close(); | 23 | virtual void close(); |
20 | virtual size_t read( void *pBuf, size_t nBytes ); | 24 | virtual size_t read( void *pBuf, size_t nBytes ); |
21 | virtual size_t read( void *pBuf, size_t nBytes, | 25 | virtual size_t read( void *pBuf, size_t nBytes, |
22 | uint32_t nSec, uint32_t nUSec=0 ); | 26 | addr &sHost, int &iPort ); |
23 | virtual size_t write( const void *pBuf, size_t nBytes ); | 27 | virtual size_t write( const void *pBuf, size_t nBytes ); |
24 | virtual size_t write( const void *pBuf, size_t nBytes, | ||
25 | uint32_t nSec, uint32_t nUSec=0 ); | ||
26 | using Stream::write; | 28 | using Stream::write; |
27 | 29 | ||
28 | virtual long tell(); | 30 | virtual long tell(); |