static void Main(string[] args)
 {
     while (true)
     {
         Client client = new Client("127.0.0.1", 8001);
         client.ConnectToServer();
         client.SendRequest();
         client.ReadResponse();
         client.CloseConnection();
     }
 }
Exemple #2
0
        private void ExitButton_Click(object sender, EventArgs e)
        {
            client.CloseConnection();

            try
            {
                Application.Exit();
            }
            catch (Exception ex)
            {
                client.listen_thread.Abort();
                Application.Exit();
            }
        }
Exemple #3
0
        private void ExitButton_Click(object sender, EventArgs e)
        {
            ActionResult res = client.Logout(user_name);

            client.CloseConnection();

            try
            {
                Application.Exit();
            }
            catch (Exception ex)
            {
                client.listen_thread.Abort();
                Application.Exit();
            }
        }