Executes the FTP command TYPE (REPRESENTATION TYPE) see Documentation of nsFTP::CRepresentation @param[in] representation see Documentation of nsFTP::CRepresentation @param[in] dwSize Indicates Bytesize for type LocalByte. @return see return values of CFTPClient::SimpleErrorCheck
| 1554 | /// @param[in] dwSize Indicates Bytesize for type LocalByte. |
| 1555 | /// @return see return values of CFTPClient::SimpleErrorCheck |
| 1556 | int CFTPClient::_RepresentationType(const CRepresentation& representation, DWORD dwSize) const |
| 1557 | { |
| 1558 | CArg Arguments(representation.Type().AsString()); |
| 1559 | |
| 1560 | switch( representation.Type().AsEnum() ) |
| 1561 | { |
| 1562 | case CType::tyLocalByte: |
| 1563 | Arguments.push_back(CMakeString() << dwSize); |
| 1564 | break; |
| 1565 | case CType::tyASCII: |
| 1566 | case CType::tyEBCDIC: |
| 1567 | case CType::tyImage: |
| 1568 | if( representation.Format().IsValid() ) |
| 1569 | Arguments.push_back(representation.Format().AsString()); |
| 1570 | } |
| 1571 | |
| 1572 | CReply Reply; |
| 1573 | if( !SendCommand(CCommand::TYPE(), Arguments, Reply) ) |
| 1574 | return FTP_ERROR; |
| 1575 | return SimpleErrorCheck(Reply); |
| 1576 | } |
| 1577 | |
| 1578 | /// Executes the FTP command CWD (CHANGE WORKING DIRECTORY) |
| 1579 | /// This command allows the user to work with a different directory or dataset |
nothing calls this directly
no test coverage detected