Ejemplo n.º 1
0
        public void Start(System.Net.Sockets.TcpClient socket)
        {
            m_theSocket = socket;

            m_theCommands = new Assemblies.Ftp.FtpConnectionObject(m_fileSystemClassFactory, m_nId, socket);
            m_theThread   = new System.Threading.Thread(new System.Threading.ThreadStart(this.ThreadRun));
            m_theThread.Start();
        }
Ejemplo n.º 2
0
        public void Start(System.Net.Sockets.TcpClient socket)
        {
            m_theSocket = socket;

            m_theCommands = new Assemblies.Ftp.FtpConnectionObject(m_fileSystemClassFactory, m_nId, socket);
            m_theThread = new System.Threading.Thread(new System.Threading.ThreadStart(this.ThreadRun));
            m_theThread.Start();
        }
Ejemplo n.º 3
0
        static private System.Net.Sockets.TcpClient OpenSocket(FtpConnectionObject connectionObject)
        {
            System.Net.Sockets.TcpClient socketPasv = connectionObject.PasvSocket;

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

            return(Assemblies.General.SocketHelpers.CreateTcpClient(connectionObject.PortCommandSocketAddress, connectionObject.PortCommandSocketPort));
        }
Ejemplo n.º 4
0
		static private System.Net.Sockets.TcpClient OpenSocket(FtpConnectionObject connectionObject)
		{
			System.Net.Sockets.TcpClient socketPasv = connectionObject.PasvSocket;

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

			return Assemblies.General.SocketHelpers.CreateTcpClient(connectionObject.PortCommandSocketAddress, connectionObject.PortCommandSocketPort);
		}
Ejemplo n.º 5
0
 public FtpReplySocket(FtpConnectionObject connectionObject)
 {
     m_theSocket = OpenSocket(connectionObject);
 }
Ejemplo n.º 6
0
		public FtpReplySocket(FtpConnectionObject connectionObject)
		{
			m_theSocket = OpenSocket(connectionObject);
		}