예제 #1
0
        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;
 }