- #ifdef TRAFF_STAT_WITH_PORTS
- virtual void AddTraffStatU(int dir, uint32_t ip, uint16_t port, uint32_t len) = 0;
- virtual void AddTraffStatD(int dir, uint32_t ip, uint16_t port, uint32_t len) = 0;
- #else
- virtual void AddTraffStatU(int dir, uint32_t ip, uint32_t len) = 0;
- virtual void AddTraffStatD(int dir, uint32_t ip, uint32_t len) = 0;
- #endif
-
- virtual const DIR_TRAFF & GetSessionUpload() const = 0;
- virtual const DIR_TRAFF & GetSessionDownload() const = 0;
+ virtual const DirTraff& GetSessionUpload() const = 0;
+ virtual const DirTraff& GetSessionDownload() const = 0;
+ virtual time_t GetSessionUploadModificationTime() const = 0;
+ virtual time_t GetSessionDownloadModificationTime() const = 0;