public TcpServer(int port, Controller controller) { this.ip = IPAddress.Any; this.port = port; ConnectedClients = new List<ClientHandler>(); Controller = controller; }
public MainWindow() { InitializeComponent(); controller = new Controller(); Thread serv = new Thread(controller.StartServer); serv.IsBackground = true; serv.Start(); }
public AddItemForm(Controller.ServerControl server) { //creates a new form this.InitializeComponent(); //adds reference to controller creating form this.m_Server = server; }
public ClientHandler(Socket clientSocket, Controller controller) { this.clientSocket = clientSocket; this.Guid = Guid.NewGuid(); Controller = controller; }