Ejemplo n.º 1
0
        public PacketViewInstanceImpl(PacketViewManager viewm, PacketViewClass viewd, PacketViewProperty viewp, Guid id) : base(viewm, viewd, viewp, id)
        {
            prop_ = viewp as PacketViewPropertyImpl;

            InitializeComponent();
            InitializeProtocolType();

            BuildPacketListHeader();

            CBox_ProtocolType.SelectedItem = prop_.ProtocolType.Value;
        }
Ejemplo n.º 2
0
        public PacketViewInstanceImpl(PacketViewManager viewm, PacketViewClass viewd, PacketViewProperty viewp, Guid id) : base(viewm, viewd, viewp, id)
        {
            prop_ = viewp as PacketViewPropertyImpl;

            InitializeComponent();

            GCPanel_Main.LoadConfig(prop_);

            Disposed += OnDisposed;

            disp_update_timer_.Interval = 1000;
            disp_update_timer_.Tick    += OnDispUpdateTimer;

            UpdateModule();
            UpdateLayerParam();
        }
Ejemplo n.º 3
0
        public PacketViewInstanceImpl(PacketViewManager viewm, PacketViewClass viewd, PacketViewProperty viewp, Guid id) : base(viewm, viewd, viewp, id)
        {
            viewp_ = viewp as PacketViewPropertyImpl;

            InitializeComponent();
            InitializeLinkType();

            Disposed += OnDisposed;

            Num_LinkType.Value = viewp_.LibPcapLinkType.Value;
            ChkBox_TransferWithPcapHeader.Checked = viewp_.TransferWithPcapHeader.Value;
            ChkBox_Capture_SendPacket.Checked     = viewp_.SendPacketCapture.Value;
            ChkBox_Capture_RecvPacket.Checked     = viewp_.RecvPacketCapture.Value;

            initialize_ = true;

            WiresharkRestart();
        }
Ejemplo n.º 4
0
        static void Main(string[] args)
        {
            /* タイマー分解能変更 */
            WinAPI.timeBeginPeriod(1);

            /* システムUI設定 */
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(true);

            /* デバッグウィンドウ起動 */
            DebugManager.Start();

            /* マネージャー初期化 */
            DeviceManager.Initialize();
            PacketViewManager.Initialize();
            ProtocolParserManager.Initialize();

#if !DEBUG
            try {
#endif
            CommandLineParse(args);

            Exec();

#if !DEBUG
        }
        catch (Exception exp) {
            ExceptionInfoOutput(exp);
            throw exp;
        }
#endif

            /* for Debug */
            System.Diagnostics.Debug.WriteLine("ExitThread2");

            /* タイマー分解能差し戻し */
            WinAPI.timeBeginPeriod(1);
        }
Ejemplo n.º 5
0
        public PacketViewInstanceImpl(PacketViewManager viewm, PacketViewClass viewd, PacketViewProperty viewp, Guid id) : base(viewm, viewd, viewp, id)
        {
            prop_                    = Property as PacketViewPropertyImpl;
            WINAPI_MODE              = ConfigManager.System.ApplicationCore.Sequential_WinApiMode.Value;
            VIEW_DATA_LIMIT          = (WINAPI_MODE && ConfigManager.System.ApplicationCore.Sequential_ViewCharCountLimitEnable.Value);
            VIEW_DATA_LIMIT_SIZE     = (int)ConfigManager.System.ApplicationCore.Sequential_ViewCharCountLimit.Value;
            VIEW_LINE_NUMBER_VISIBLE = (WINAPI_MODE && ConfigManager.System.ApplicationCore.Sequential_LineNoVisible.Value);

            InitializeComponent();
            InitializeDrawType();
            InitializeLineNumberPanel();

            Num_ShiftBit.Value      = prop_.ShiftBit.Value;
            ChkBox_EchoBack.Checked = prop_.EchoBack.Value;

            CBox_DrawType.SelectedItem = prop_.DrawType.Value;
            TBox_BoundaryText.Text     = prop_.BoundaryText.Value.TrimEnd(new char[] { '\r', '\n' });
            TBox_LFCode.Text           = prop_.EndLinePattern.Value.Trim();

            /* TODO: 未実装なので今は非表示 */
            Splitter_Main.Panel2Collapsed = true;

            UpdateViewLineNumber();
        }
Ejemplo n.º 6
0
 protected override PacketViewInstance OnCreateInstance(PacketViewManager viewm, Guid obj_id, PacketViewProperty viewp)
 {
     return(new PacketViewInstanceImpl(viewm, this, viewp, obj_id));
 }