classes/CFTP.cpp
std::vector<std::string> CFTP::getServerFeatures()
    {
        try
        {
            if (!m_connected)
            {
                throw std::logic_error("Already connected to a server.");
            }
            if (m_serverFeatures.empty())
            {
                ftpServerFeatures();
            }
            return (m_serverFeatures);
        }
        catch (const std::exception &e)
        {
            throw Exception(e.what());
        }
    }
//
// Return a vector of strings representing FTP server features. If empty
// try to get again as server may require to be logged in.
//
Return a vector of strings representing FTP server features. If empty
try to get again as server may require to be logged in.
Return a vector of strings representing FTP server features . If empty try to get again as server may require to be logged in .
std::vector<std::string> CFTP::getServerFeatures()
    {
        try
        {
            if (!m_connected)
            {
                throw std::logic_error("Already connected to a server.");
            }
            if (m_serverFeatures.empty())
            {
                ftpServerFeatures();
            }
            return (m_serverFeatures);
        }
        catch (const std::exception &e)
        {
            throw Exception(e.what());
        }
    }
std :: vector < std :: string > CFTP :: getServerFeatures ( ) { try { if ( ! m_connected ) { throw std :: logic_error ( " " ) ; } if ( m_serverFeatures . empty ( ) ) { ftpServerFeatures ( ) ; } return ( m_serverFeatures ) ; } catch ( const std :: exception & e ) { throw Exception ( e . what ( ) ) ; } }
Return a vector of strings representing FTP server features.
Return a vector of strings representing FTP server features .