9 #include "wvfdstream.h"
11 #include <netinet/in.h>
37 int ip_protocol = IPPROTO_RAW);
40 const WvAddr *local()
const;
48 void setdest(
const WvIPAddr &_remaddr)
49 { remaddr = _remaddr; }
51 void enable_broadcasts();
56 virtual size_t uread(
void *buf,
size_t count);
57 virtual size_t uwrite(
const void *buf,
size_t count);
60 const char *wstype()
const {
return "WvIPRawStream"; }
virtual const WvAddr * src() const
return the remote address (source of incoming packets, target of outgoing packets).
WvIPRawStream(const WvIPAddr &_local, const WvIPAddr &_rem, int ip_protocol=IPPROTO_RAW)
connect a new socket
WvIPRawStream can send and receive packets on a connectionless IP socket.
Base class for different address types, each of which will have the ability to convert itself to/from...
virtual size_t uread(void *buf, size_t count)
unbuffered I/O functions; these ignore the buffer, which is handled by read().
An IP address is made up of a "dotted quad" – four decimal numbers in the form www....
Base class for streams built on Unix file descriptors.
virtual size_t uwrite(const void *buf, size_t count)
unbuffered I/O functions; these ignore the buffer, which is handled by write().