コード例 #1
0
ファイル: Server.cs プロジェクト: timglide/hb-plugins
        public Server(Class1 owner)
        {
            Owner = owner;

            settings = ServerSettings.Instance;
            tcpListener = new TcpListener(IPAddress.Any, settings.Port);
            tcpListener.Start();

            listenThread = new Thread(Listen);
            listenThread.Name = "GRC Server";
            listenThread.IsBackground = true;
            running = true;
            listenThread.Start();
        }
コード例 #2
0
 private void SettingsForm_Load(object sender, EventArgs e)
 {
     serverSettings = (ServerSettings)ServerSettings.Instance.Clone();
     propertyGrid.SelectedObject = serverSettings;
 }