Example #1
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(SocketHelpers.CreateTcpClient(connectionObject.PortCommandSocketAddress, connectionObject.PortCommandSocketPort));
        }
Example #2
0
 protected FtpCommandHandler(string sCommand, FtpConnectionObject connectionObject)
 {
     m_sCommand            = sCommand;
     m_theConnectionObject = connectionObject;
 }
Example #3
0
 public FtpReplySocket(FtpConnectionObject connectionObject)
 {
     m_theSocket = OpenSocket(connectionObject);
 }