コード例 #1
0
ファイル: Flow.cs プロジェクト: menozz/mirelle
        public Flow(FlowType type, int speed, int packsize)
        {
            FlowType = type;
              Speed = speed;
              PacketSize = packsize;

              Reset();
        }
コード例 #2
0
ファイル: FlowType.cs プロジェクト: menozz/mirelle
        /// <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;
        }
コード例 #3
0
ファイル: Flow.cs プロジェクト: menozz/mirelle
 public Flow(FlowType type, int speed, int packsize, int qos)
     : this(type, speed, packsize)
 {
     QoS = qos;
 }