summaryrefslogtreecommitdiff
path: root/src/udpsocket.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/udpsocket.h8
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();