コード例 #1
0
        private void ButtonSend_Click(object sender, EventArgs e)
        {
            string str    = MessageMaker(MsgType.Minecraft, "name", TestBoxInput.Text);
            string status = SocketWorker.Post(str);

            if (status == success)
            {
                //MessageBox.Show("Successful!");
            }
            else
            {
                MessageBox.Show(status);
            }
        }
コード例 #2
0
        public Main()
        {
            InitializeComponent();

            //Todo
            timeStamp = SocketWorker.Connect(ServerHost, ServerPort);

            string ptr = MessageMaker(MsgType.Handshake, SendName.Plugin, password, timeStamp);

            SocketWorker.Post(ptr);
            //MessageBox.Show(timeStamp);
            //MessageBox.Show(ptr);
            //Console.ReadLine();

            SocketWorker.Recive();
        }