classes/CFTP.cpp
void CFTP::ftpCommand(const std::string &command)
    {
        m_lastCommand = command + "\r\n";
        size_t commandLength = m_lastCommand.size();
        do
        {
            commandLength -= m_controlChannelSocket.write(&m_lastCommand[m_lastCommand.size() - commandLength], commandLength);
        } while (commandLength != 0);
        m_lastCommand.pop_back();
        m_lastCommand.pop_back();
        ftpResponse();
    }
//
// Send FTP over control channel. Append "\r\n" to command for transmission then remove
// from m_lastCommand.
//
Send FTP over control channel. Append "\r\n" to command for transmission then remove
from m_lastCommand.
Send FTP over control channel . Append " \ r \ n " to command for transmission then remove from m_lastCommand .
void CFTP::ftpCommand(const std::string &command)
    {
        m_lastCommand = command + "\r\n";
        size_t commandLength = m_lastCommand.size();
        do
        {
            commandLength -= m_controlChannelSocket.write(&m_lastCommand[m_lastCommand.size() - commandLength], commandLength);
        } while (commandLength != 0);
        m_lastCommand.pop_back();
        m_lastCommand.pop_back();
        ftpResponse();
    }
void CFTP :: ftpCommand ( const std :: string & command ) { m_lastCommand = command + " \r \n " ; size_t commandLength = m_lastCommand . size ( ) ; do { commandLength -= m_controlChannelSocket . write ( & m_lastCommand [ m_lastCommand . size ( ) - commandLength ] , commandLength ) ; } while ( commandLength != 0 ) ; m_lastCommand . pop_back ( ) ; m_lastCommand . pop_back ( ) ; ftpResponse ( ) ; }
Send FTP over control channel.
Send FTP over control channel .