예제 #1
0
 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);
     }
 }
예제 #2
0
        private void btn_login_Click(object sender, EventArgs e)
        {
            string cmd = "Login:"******"," + tbx_password.Text;

            chat_client.Send(cmd);
        }