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)); }
protected FtpCommandHandler(string sCommand, FtpConnectionObject connectionObject) { m_sCommand = sCommand; m_theConnectionObject = connectionObject; }
public FtpReplySocket(FtpConnectionObject connectionObject) { m_theSocket = OpenSocket(connectionObject); }