From c259f95bd0e58b247940a339bb9b4b401b4e9438 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 20 Jan 2011 17:48:45 +0000 Subject: UdpSocket is pretty much working. Non-blocking mode isn't, which is odd, but we can figure that out later. --- src/udpsocket.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/udpsocket.h') 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 UdpSocket( const Bu::FString &sAddr, int iPort, int iFlags ); virtual ~UdpSocket(); + typedef uint32_t addr; + + static Bu::FString addrToStr( const addr &a ); + virtual void close(); virtual size_t read( void *pBuf, size_t nBytes ); virtual size_t read( void *pBuf, size_t nBytes, - uint32_t nSec, uint32_t nUSec=0 ); + addr &sHost, int &iPort ); virtual size_t write( const void *pBuf, size_t nBytes ); - virtual size_t write( const void *pBuf, size_t nBytes, - uint32_t nSec, uint32_t nUSec=0 ); using Stream::write; virtual long tell(); -- cgit v1.2.3