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")); }
public FTPCommandHandler(FTPConnection connection) { _connection = connection; }