SuperSocket.Ftp.FtpService.DataConnection.InitStream C# (CSharp) Метод

InitStream() приватный Метод

private InitStream ( SuperSocket.Ftp.FtpService.FtpContext context ) : void
context SuperSocket.Ftp.FtpService.FtpContext
Результат void
        private void InitStream(FtpContext context)
        {
            switch (SecureProtocol)
            {
                case (SslProtocols.Tls):
                case (SslProtocols.Ssl3):
                case (SslProtocols.Ssl2):
                    SslStream sslStream = new SslStream(new NetworkStream(Client), false);
                    sslStream.AuthenticateAsServer(m_Session.AppServer.Certificate, false, SslProtocols.Default, true);
                    m_Stream = sslStream as Stream;
                    break;
                default:
                    m_Stream = new NetworkStream(Client);
                    break;
            }
        }