title: Exit TcpLIstener.AcceptTcpClient() after determined time
body: <p>I want my server to stop listening after minute without connection request.
  The problem is that after command AcceptTcpClient() it gets into a loop without option to stop it.
  There is an option to do that?</p>
  
  <pre><code>private static void Listen(TcpListener listener)
      {
          //Start listening
          listener.Start();
          Console.WriteLine("Waiting for a connection...\n");
  
          //Accept connection
          TcpClient client = listener.AcceptTcpClient();
  
          //Need to stop it after 1 minute.
  
          listener.Stop();
          //CHECK
          Console.WriteLine("Accepted the connection\n");
  
          ClientHandle(client);
  
      }
  </code></pre>