public void Close() { Socket1.Close(); Socket2.Close(); }
private void CloseConnection() { Socket1.Close(); Socket1 = null; Console.WriteLine("Connection of client index: " + Index + " closed and destroyed."); }