Ejemplo n.º 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"));
        }
Ejemplo n.º 2
0
 public FTPCommandHandler(FTPConnection connection)
 {
     _connection = connection;
 }