return false;
}
//------------------------
+ bool operator!=(const IP_DIR_PAIR & rvalue) const
+ {
+ if (ip != rvalue.ip)
+ return true;
+
+ #ifdef TRAFF_STAT_WITH_PORTS
+ if (port != rvalue.port)
+ return true;
+ #endif
+
+ if (dir != rvalue.dir)
+ return true;
+
+ return false;
+ }
+ //------------------------
uint32_t ip;
int dir;
#ifdef TRAFF_STAT_WITH_PORTS
down = us.down;
return * this;
};
- operator USER_STAT()
+ operator USER_STAT() const
{
USER_STAT us;
us.cash = cash;
};
//-----------------------------------------------------------------------------
#endif
-
-
-