Пример #1
0
        public static CategorizeInfo operator -(CategorizeInfo lhs, CategorizeInfo rhs)
        {
            CategorizeInfo res = new CategorizeInfo();

            res.ApplicationLayer = lhs.ApplicationLayer.Difference(rhs.ApplicationLayer);
            res.TransportLayer   = lhs.TransportLayer.Difference(rhs.TransportLayer);
            res.NetworkLayer     = lhs.NetworkLayer.Difference(rhs.NetworkLayer);

            return(res);
        }
Пример #2
0
 public StatisticsInfo(double bps, double pps)
 {
     Bps   = bps;
     Pps   = pps;
     cinfo = new CategorizeInfo
     {
         NetworkLayer     = new Dictionary <string, long>(),
         TransportLayer   = new Dictionary <string, long>(),
         ApplicationLayer = new Dictionary <string, long>()
     };
 }
Пример #3
0
 public RangeMeta(RangeMeta other)
 {
     TotalLen = other.TotalLen;
     Cinfo    = other.Cinfo;
 }
Пример #4
0
 public RangeMeta(MetaPacket pk)
 {
     TotalLen = pk.Length;
     Cinfo    = pk.Cinfo;
 }
Пример #5
0
 public MetaPacket(Packet pk)
 {
     Length    = pk.Length * 8;
     Timestamp = pk.Timestamp;
     Cinfo     = SingleAnalyzer.SortPacket(pk);
 }