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

            try
            {
                Application.Exit();
            }
            catch (Exception ex)
            {
                client.listen_thread.Abort();
                Application.Exit();
            }
        }
Esempio n. 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();
            }
        }