std::istream& FTPClientSession::beginList(const std::string& path, bool extended) { delete _pDataStream; _pDataStream = 0; _pDataStream = new SocketStream(establishDataConnection(extended ? "LIST" : "NLST", path)); return *_pDataStream; }
std::ostream& FTPClientSession::beginUpload(const std::string& path) { delete _pDataStream; _pDataStream = 0; _pDataStream = new SocketStream(establishDataConnection("STOR", path)); return *_pDataStream; }
std::istream& FTPClientSession::beginList(const std::string& path, bool extended) { if (!isOpen()) throw FTPException("Connection is closed."); delete _pDataStream; _pDataStream = 0; _pDataStream = new SocketStream(establishDataConnection(extended ? "LIST" : "NLST", path)); return *_pDataStream; }
std::ostream& FTPClientSession::beginUpload(const std::string& path) { if (!isOpen()) throw FTPException("Connection is closed."); delete _pDataStream; _pDataStream = 0; _pDataStream = new SocketStream(establishDataConnection("STOR", path)); return *_pDataStream; }