summaryrefslogtreecommitdiff
path: root/src/FtpConnection.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-09-09 15:22:32 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-09-09 15:22:32 +0000
commit1b2a76706f5138e65e8ad0136671101287f5fa43 (patch)
treec8c2f6dc7c282aff61d22116be543dd5df2b45e0 /src/FtpConnection.h
parentb23c3facc963be3adaa1b24363b25988ec0564d3 (diff)
2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that bulkReceiveResponse() reads all received data as a response even if more than one response is in it. * src/FtpConnection.cc * src/FtpConnection.h * test/FtpConnectionTest.cc
Diffstat (limited to 'src/FtpConnection.h')
-rw-r--r--src/FtpConnection.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/FtpConnection.h b/src/FtpConnection.h
index 80a0a195..299489a7 100644
--- a/src/FtpConnection.h
+++ b/src/FtpConnection.h
@@ -60,7 +60,8 @@ private:
std::string strbuf;
unsigned int getStatus(const std::string& response) const;
- bool isEndOfResponse(unsigned int status, const std::string& response) const;
+ std::string::size_type findEndOfResponse(unsigned int status,
+ const std::string& buf) const;
bool bulkReceiveResponse(std::pair<unsigned int, std::string>& response);
static const std::string A;