Example #1
0
        public void Start(TcpClient socket)
        {
            this._clientSocket = socket;

            this._connectionCommands = new FtpConnectionObject(_fileSystemClassFactory, Id, socket);

            this._mainThread = new Thread(ThreadRun);
            this._mainThread.Name = "ThreadRun:" + Id;
            this._mainThread.Start();
        }
Example #2
0
        public void Start(TcpClient socket)
        {
            this.clientSocket = socket;

            this.connectionCommands = new FtpConnectionObject(this.fileSystemClassFactory, this.Id, socket);

            this.mainThread      = new Thread(this.ThreadRun);
            this.mainThread.Name = "ThreadRun:" + this.Id;
            this.mainThread.Start();
        }
Example #3
0
        public void Start(TcpClient socket)
        {
            clientSocket = socket;

            connectionCommands = new FtpConnectionObject(fileSystemClassFactory, Id, socket);

            mainThread      = new Thread(ThreadRun);
            mainThread.Name = "ThreadRun:" + Id;
            mainThread.Start();
        }
Example #4
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));
        }
Example #5
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);
        }
Example #6
0
 public FtpReplySocket(FtpConnectionObject connectionObject)
 {
     this.socket = OpenSocket(connectionObject);
 }
Example #7
0
 public FtpReplySocket(FtpConnectionObject connectionObject)
 {
     this.socket = OpenSocket(connectionObject);
 }