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;
        }
Example #3
0
 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;
 }
Example #6
0
 public CommandController(IFlightServer flightServer)
 {
     this.ifs = flightServer;
 }
Example #7
0
 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;
 }