public static void SendMessage(string command, string body) { if (IsConnect) { Debug.Log("SendMessage Success"); string message = command + " " + body + terminateString; byte[] buff = Encoding.UTF8.GetBytes(message); client.Send(buff); } }
private void btn_login_Click(object sender, EventArgs e) { string cmd = "Login:"******"," + tbx_password.Text; chat_client.Send(cmd); }