Esempio n. 1
0
        public void Start(TcpClient socket)
        {
            theSocket = socket;

            connectionObject = new FtpConnectionObject(fileSystemClassFactory, id, socket);
            theThread = new Thread(ThreadRun);
            theThread.Start();
        }
Esempio n. 2
0
        private static TcpClient OpenSocket(FtpConnectionObject connectionObject)
        {
            TcpClient socketPasv = connectionObject.PasvSocket;

            if (socketPasv != null)
            {
                connectionObject.PasvSocket = null;
                return socketPasv;
            }

            return SocketHelpers.CreateTcpClient(connectionObject.PortCommandSocketAddress,
                                                 connectionObject.PortCommandSocketPort);
        }
 public RemoveDirectoryCommandHandler(FtpConnectionObject connectionObject)
     : base("RMD", connectionObject)
 {
 }
Esempio n. 4
0
 public DeleCommandHandler(FtpConnectionObject connectionObject)
     : base("DELE", connectionObject)
 {
 }
Esempio n. 5
0
 public MDTMCommandHandler(FtpConnectionObject connectionObject)
     : base("MDTM", connectionObject)
 {
 }
Esempio n. 6
0
 public PortCommandHandler(FtpConnectionObject connectionObject)
     : base("PORT", connectionObject)
 {
 }
 protected MakeDirectoryCommandHandlerBase(string sCommand, FtpConnectionObject connectionObject)
     : base(sCommand, connectionObject)
 {
 }
Esempio n. 8
0
 public StoreCommandHandler(FtpConnectionObject connectionObject)
     : base("STOR", connectionObject)
 {
 }
Esempio n. 9
0
 public NlstCommandHandler(FtpConnectionObject connectionObject)
     : base("NLST", connectionObject)
 {
 }
Esempio n. 10
0
 public AlloCommandHandler(FtpConnectionObject connectionObject)
     : base("ALLO", connectionObject)
 {
 }
Esempio n. 11
0
 public FtpReplySocket(FtpConnectionObject connectionObject)
 {
     theSocket = OpenSocket(connectionObject);
 }
Esempio n. 12
0
 public QuitCommandHandler(FtpConnectionObject connectionObject)
     : base("QUIT", connectionObject)
 {
 }
Esempio n. 13
0
 public CwdCommandHandler(FtpConnectionObject connectionObject)
     : base("CWD", connectionObject)
 {
 }
 public RenameCompleteCommandHandler(FtpConnectionObject connectionObject)
     : base("RNTO", connectionObject)
 {
 }
Esempio n. 15
0
 public XRmdCommandHandler(FtpConnectionObject connectionObject)
     : base("XRMD", connectionObject)
 {
 }
Esempio n. 16
0
 public ListCommandHandler(FtpConnectionObject connectionObject)
     : base("LIST", connectionObject)
 {
 }
Esempio n. 17
0
 public AppendCommandHandler(FtpConnectionObject connectionObject)
     : base("APPE", connectionObject)
 {
 }
Esempio n. 18
0
 public TypeCommandHandler(FtpConnectionObject connectionObject)
     : base("TYPE", connectionObject)
 {
 }
Esempio n. 19
0
 public RenameStartCommandHandler(FtpConnectionObject connectionObject)
     : base("RNFR", connectionObject)
 {
 }
Esempio n. 20
0
 public PasvCommandHandler(FtpConnectionObject connectionObject)
     : base("PASV", connectionObject)
 {
 }
Esempio n. 21
0
 public SizeCommandHandler(FtpConnectionObject connectionObject)
     : base("SIZE", connectionObject)
 {
 }
Esempio n. 22
0
 public XPwdCommandHandler(FtpConnectionObject connectionObject)
     : base("XPWD", connectionObject)
 {
 }
Esempio n. 23
0
 public PasswordCommandHandler(FtpConnectionObject connectionObject)
     : base("PASS", connectionObject)
 {
 }
Esempio n. 24
0
 public XMkdCommandHandler(FtpConnectionObject connectionObject)
     : base("XMKD", connectionObject)
 {
 }
Esempio n. 25
0
 public PwdCommandHandlerBase(string sCommand, FtpConnectionObject connectionObject)
     : base(sCommand, connectionObject)
 {
 }
 public MakeDirectoryCommandHandler(FtpConnectionObject connectionObject)
     : base("MKD", connectionObject)
 {
 }
Esempio n. 27
0
 public NoopCommandHandler(FtpConnectionObject connectionObject)
     : base("NOOP", connectionObject)
 {
 }
Esempio n. 28
0
 public RetrCommandHandler(FtpConnectionObject connectionObject)
     : base("RETR", connectionObject)
 {
 }
Esempio n. 29
0
 public UserCommandHandler(FtpConnectionObject connectionObject)
     : base("USER", connectionObject)
 {
 }
Esempio n. 30
0
 protected CommandHandler(string command, FtpConnectionObject connectionObject)
 {
     this.command = command;
     theConnectionObject = connectionObject;
 }