Example #1
0
        public void CreatPcapFile_Signaling(DateTime CreatTime)//创建信令pcap文件     //林庆庆
        {
            genePcapFile_Signaling = new GeneratePcapFile();
            string fileName_Signaling = "\\LTE-M";                                                                                                                      //信令pcap文件夹的名称

            FileName_Signaling     = CreatTime.ToString("yyyy") + "." + CreatTime.ToString("MM") + "." + CreatTime.ToString("dd") + "  " + CreatTime.ToString("HH:mm"); //林庆庆
            FileSavePath_Signaling = SetFileSavePath(fileName_Signaling, CreatTime);
            genePcapFile_Signaling.CreatPcap(FileSavePath_Signaling, FileName_Signaling);
        }
Example #2
0
        public void CreatPcapFile(DateTime CreatTime)//创建信号pcap文件         //林庆庆
        {
            genePcapFile = new GeneratePcapFile();
            string fileName = "\\CBTC";                                                                                                                       //信号pcap文件夹的名称

            FileName     = CreatTime.ToString("yyyy") + "." + CreatTime.ToString("MM") + "." + CreatTime.ToString("dd") + "  " + CreatTime.ToString("HH:mm"); //林庆庆
            FileSavePath = SetFileSavePath(fileName, CreatTime);
            genePcapFile.CreatPcap(FileSavePath, FileName);
        }
Example #3
0
 public void CreatPcapFile()
 {
     genePcapFile = new GeneratePcapFile();
     FileName     = System.DateTime.Now.ToString("yyyy") + "." + System.DateTime.Now.ToString("MM") + "." + System.DateTime.Now.ToString("dd") + "  " + System.DateTime.Now.ToString("HH:mm");
     FileSavePath = SetFileSavePath();
     if (File.Exists(FileSavePath + "\\" + FileName + ".pcap"))
     {
         File.Delete(FileSavePath + "\\" + FileName + ".pcap");
         genePcapFile.CreatPcap(FileSavePath, FileName);
     }
     else
     {
         genePcapFile.CreatPcap(FileSavePath, FileName);
     }
 }
Example #4
0
        public void CreatPcapFilePerDay(object o)
        {
            genePcapFile = new GeneratePcapFile();
            FileName     = System.DateTime.Now.ToString("yyyy") + "." + System.DateTime.Now.ToString("MM") + "." + System.DateTime.Now.ToString("dd") + "  " + System.DateTime.Now.ToString("HH:mm");
            FileSavePath = SetFileSavePath();
            genePcapFile.CreatPcap(FileSavePath, FileName);

            DateTime dt1 = DateTime.Parse(DateTime.Now.ToShortDateString() + " 23:59:59");
            DateTime dt2 = DateTime.Now;
            TimeSpan ts  = new TimeSpan();

            ts = dt1 - dt2;
            Int64 IntervalToTomorrow0 = Convert.ToInt64(ts.TotalMilliseconds + 1800000);

            MainForm.CreatPcapPerDay.Change(IntervalToTomorrow0, IntervalToTomorrow0);
        }