コード例 #1
0
ファイル: TcpServer.cs プロジェクト: KOS-CH/IPSLibrary
        public TcpServer(int port, IntPtr guiHandle, NotifyIcon notifyIcon)
        {
            this.tcpPort = port;
            this.guiHandle = guiHandle;
            this.notifyIcon = notifyIcon;
            this.clients = new List<TcpClient>();
            this.mouseUtils = new MouseUtils();
            this.monitorUtils = new MonitorUtils(guiHandle);
            this.performanceUtils = new PerformanceUtils();

            this.AutoSendInterval = 10;
            autoSendTimer = new System.Windows.Forms.Timer();
            autoSendTimer.Interval = AutoSendInterval;
            this.autoSendTimer.Tick += new EventHandler(SendTimedMessages);
            autoSendTimer.Enabled = true;
        }
コード例 #2
0
        public TcpServer(int port, IntPtr guiHandle, NotifyIcon notifyIcon)
        {
            this.tcpPort          = port;
            this.guiHandle        = guiHandle;
            this.notifyIcon       = notifyIcon;
            this.clients          = new List <TcpClient>();
            this.mouseUtils       = new MouseUtils();
            this.monitorUtils     = new MonitorUtils(guiHandle);
            this.performanceUtils = new PerformanceUtils();

            this.AutoSendInterval    = 10;
            autoSendTimer            = new System.Windows.Forms.Timer();
            autoSendTimer.Interval   = AutoSendInterval;
            this.autoSendTimer.Tick += new EventHandler(SendTimedMessages);
            autoSendTimer.Enabled    = true;
        }