コード例 #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);
        }