Exemple #1
0
        public FTPClientHandler(TcpClient ClientConnection)
        {
            connection    = new FTPConnection(ClientConnection);
            commandReader = new FTPCommandHandler(connection);

            connection.Authentication = new DummyAuthentication();
            connection.FileSystem     = Helpers.IsUnix ? (IFileSystem) new UnixFileSystem() : new WindowsFileSystem();

            ClientConnection.WriteToSocket(string.Format("220 ToFTP Server Ready\r\n"));
        }
Exemple #2
0
 public FTPCommandHandler(FTPConnection connection)
 {
     _connection = connection;
 }