System.Net.Sockets.Tests.AgnosticListenerTest.Create_Success C# (CSharp) Méthode

Create_Success() private méthode

private Create_Success ( ) : void
Résultat void
        public void Create_Success()
        {
            // NOTE: the '0' below will cause the TcpListener to bind to an anonymous port.
            TcpListener listener = new TcpListener(IPAddress.IPv6Any, 0);
            listener.Server.DualMode = true;

            listener.Start();
            listener.Stop();
        }