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

            save(response);
        }
示例#2
0
文件: Form1.cs 项目: witek0509x/GCS
        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));
        }
示例#3
0
        string CommandExecute()
        {
            string respond;

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