Reconnect to the server
问题 My Tcpclient did not disconnect properly I am using Client async. I want to reconnect again automatic when server disconnect. What is correct path? This is Connection code private void Connect_btn_Click(object sender, EventArgs e) { try { if (IsConnected == false) { constatus.Text = "Connecting....."; newsock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); //IPEndPoint iep = new IPEndPoint(IPAddress.Any, 20); IPEndPoint iep = new IPEndPoint(IPAddress.Parse(IP),