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