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); } }
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(); }