/// <summary> /// Cleans up any resources being used. /// </summary> public void Dispose() { if (m_pSocket != null) { m_pSocket.Close(); m_pSocket = null; } m_pOwner = null; }
/// <summary> /// Default constructor. /// </summary> /// <param name="owner">Data connection owner FTP client.</param> public DataConnection(FTP_Client owner) { m_pOwner = owner; CreateSocket(); }