예제 #1
0
 private void DisConnectButton_Click(object sender, EventArgs e)
 {
     GetData_From_Client.Abort();
     SendImage_To_Server_Thread.Abort();
     Client.Disconnect(false);
     Client.Shutdown(SocketShutdown.Both);
     Client.Close();
     ImageClient.Disconnect(false);
     ImageClient.Shutdown(SocketShutdown.Both);
     ImageClient.Close();
     SendButton.Enabled       = false;
     DisConnectButton.Enabled = false;
     ConnectButton.Enabled    = true;
     SendImageButton.Enabled  = false;
 }