21#ifndef _NET_INTERFACE_HH
22#define _NET_INTERFACE_HH
24#ifndef _NET_ADDRESS_HH
46 struct sockaddr_storage& fromAddress) = 0;
UsageEnvironment & operator<<(UsageEnvironment &s, const Socket &sock)
Boolean haveSeenTraffic() const
float totNumBytes() const
void countPacket(unsigned packetSize)
NetInterfaceTrafficStats()
float totNumPackets() const
static UsageEnvironment * DefaultUsageEnvironment
Socket * Fetch(UsageEnvironment &env, Port port, Boolean &isNew)
virtual ~SocketLookupTable()
virtual Socket * CreateNew(UsageEnvironment &env, Port port)=0
Boolean Remove(Socket const *sock)
virtual Boolean handleRead(unsigned char *buffer, unsigned bufferMaxSize, unsigned &bytesRead, struct sockaddr_storage &fromAddress)=0
Boolean changePort(Port newPort)
Socket(UsageEnvironment &env, Port port, int family)
UsageEnvironment & env() const