Пример #1
0
 public TcpServer(int port, Controller controller)
 {
     this.ip = IPAddress.Any;
     this.port = port;
     ConnectedClients = new List<ClientHandler>();
     Controller = controller;
 }
Пример #2
0
 public MainWindow()
 {
     InitializeComponent();
     controller = new Controller();
     Thread serv = new Thread(controller.StartServer);
     serv.IsBackground = true;
     serv.Start();
 }
Пример #3
0
        public AddItemForm(Controller.ServerControl server)
        {
            //creates a new form
            this.InitializeComponent();

            //adds reference to controller creating form
            this.m_Server = server;
        }
Пример #4
0
 public ClientHandler(Socket clientSocket, Controller controller)
 {
     this.clientSocket = clientSocket;
     this.Guid = Guid.NewGuid();
     Controller = controller;
 }