Example #1
0
    protected sealed override async Task TcpAcceptedImplAsync(NetTcpListenerPort listener, ConnSock s)
    {
        await using (SslSock ssl = new SslSock(s))
        {
            await ssl.StartSslServerAsync(this.Options.SslServerAuthenticationOptions, s.GrandCancel);

            ssl.UpdateSslSessionInfo();

            await SslAcceptedImplAsync(listener, ssl);
        }
    }