private MainModel(IFlightServer serverModel, IFlightClient clientModel) { ServerModel = serverModel; ClientModel = clientModel; // adds a listener so that when the servers opens, the client will open ServerModel.OnConnection += OpenClient; }
Program() { client = new FlightClient(); client.IP = "127.0.0.1"; client.Port = 5402; server = new FlightServer(); server.Port = 5400; }
public FlightClientObjectWorker(IFlightServer server, TcpClient connection) { this.server = server; this.connection = connection; try { stream = connection.GetStream(); formatter = new BinaryFormatter(); connected = true; } catch (Exception e) { Console.WriteLine(e.StackTrace); } }
public ParallelFlightServer(IFlightServer server) => Server = server;
public ScreenshotController(IFlightServer flightServer) { this.ifs = flightServer; }
public CommandController(IFlightServer flightServer) { this.ifs = flightServer; }
public SerialFlightServer(string host, int port, IFlightServer server) : base(host, port) { this.server = server; Console.WriteLine("SerialChatServer..."); }
public FlightBoardVM(IFlightServer server) { Server = server; Server.PropertyChanged += OnVariableChange; }