Example #1
0
        public void ReciveUpdate()
        {
            string command  = "ReciveUpdate " + name + " " + MissionTime.ToString();
            string response = TCP.Connect("127.0.0.1", command, 3456);

            save(response);
        }
Example #2
0
        public GCS()
        {
            InitializeComponent();

            DBConnectionThread db     = new DBConnectionThread("xd", "127.0.0.1", true);
            Thread             thread = new Thread(new ThreadStart(db.Run));

            thread.Start();
            Console.WriteLine(TCP.Connect("77.55.219.19", "ReciveUpdate Puszek 2", 3456));
        }
Example #3
0
        string CommandExecute()
        {
            string respond;

            if (command == "")
            {
                return("NoCommandError");
            }
            else
            {
                respond = TCP.Connect(IP, command, 3456);
            }
            clear();
            return(respond);
        }