Beispiel #1
0
        public Flow(FlowType type, int speed, int packsize)
        {
            FlowType = type;
              Speed = speed;
              PacketSize = packsize;

              Reset();
        }
Beispiel #2
0
        /// <summary>
        /// to_a converter
        /// </summary>
        /// <returns></returns>
        public static FlowType[] ToArray()
        {
            var names = new[]
              {
            "unknown",
            "http",
            "ftp",
            "video",
            "voip"
              };

              var arr = new FlowType[names.Length];
              for (int idx = 0; idx < names.Length; idx++)
            arr[idx] = new FlowType(idx, names[idx]);

              return arr;
        }
Beispiel #3
0
 public Flow(FlowType type, int speed, int packsize, int qos)
     : this(type, speed, packsize)
 {
     QoS = qos;
 }