Beispiel #1
0
 public TCPClient()
 {
     locker = new object();
     app    = new ApplicationSettingsModel();
     client = new TcpClient();
     ep     = new IPEndPoint(IPAddress.Parse(app.FlightServerIP), app.FlightCommandPort);
     while (!client.Connected)
     {
         try
         {
             client.Connect(ep);
         }
         catch (Exception e) { }
     }
 }
 /// <summary>
 /// Constructor : gets an ApplicationSettingsModel for connecting information.
 /// </summary>
 /// <param name="applicationSettingsModel"></param>
 public CommandsModel(ApplicationSettingsModel applicationSettingsModel)
 {
     this.applicationSettingsModel = applicationSettingsModel;
 }
Beispiel #3
0
 /// <summary>
 /// Constructor :  gets an ApplicationSettingsModel for server information.
 /// </summary>
 /// <param name="applicationSettingsModel"></param>
 public InfoModel(ApplicationSettingsModel applicationSettingsModel)
 {
     this.applicationSettingsModel = applicationSettingsModel;
 }