9 #include "wvfdstream.h"
38 const WvAddr *local()
const;
47 { remaddr = _remaddr; }
49 void enable_broadcasts();
54 virtual size_t uread(
void *buf,
size_t count);
55 virtual size_t uwrite(
const void *buf,
size_t count);
58 const char *wstype()
const {
return "WvUDPStream"; }
virtual const WvAddr * src() const
return the remote address (source of incoming packets, target of outgoing packets).
virtual size_t uread(void *buf, size_t count)
unbuffered I/O functions; these ignore the buffer, which is handled by read().
virtual size_t uwrite(const void *buf, size_t count)
unbuffered I/O functions; these ignore the buffer, which is handled by write().
An IP+Port address also includes a port number, with the resulting form www.xxx.yyy....
Base class for different address types, each of which will have the ability to convert itself to/from...
Base class for streams built on Unix file descriptors.
WvUDPStream can send and receive packets on a connectionless UDP socket.
WvUDPStream(const WvIPPortAddr &_local, const WvIPPortAddr &_rem)
connect a new socket