diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-07-21 08:56:16 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-07-21 08:56:16 +0000 |
| commit | 6574e44f886740273676b6d73ef754385a36197f (patch) | |
| tree | c13b2c6f1bb178bc5adae67f47549ea6a86d7ec4 /src/FtpConnection.h | |
| parent | cd6b6e359135f88afffbaa31c126489aa9813571 (diff) | |
2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Converted int's to in32_t. long long int's are also converted to
int64_t
Diffstat (limited to 'src/FtpConnection.h')
| -rw-r--r-- | src/FtpConnection.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/FtpConnection.h b/src/FtpConnection.h index ed3697a6..766d3720 100644 --- a/src/FtpConnection.h +++ b/src/FtpConnection.h @@ -47,7 +47,7 @@ using namespace std; class FtpConnection { private: - int cuid; + int32_t cuid; SocketHandle socket; RequestHandle req; const Option* option; @@ -55,11 +55,11 @@ private: string strbuf; - int getStatus(const string& response) const; - bool isEndOfResponse(int status, const string& response) const; - bool bulkReceiveResponse(pair<int, string>& response); + int32_t getStatus(const string& response) const; + bool isEndOfResponse(int32_t status, const string& response) const; + bool bulkReceiveResponse(pair<int32_t, string>& response); public: - FtpConnection(int cuid, const SocketHandle& socket, + FtpConnection(int32_t cuid, const SocketHandle& socket, const RequestHandle req, const Option* op); ~FtpConnection(); void sendUser() const; @@ -72,9 +72,9 @@ public: void sendRest(const SegmentHandle& segment) const; void sendRetr() const; - int receiveResponse(); - int receiveSizeResponse(long long int& size); - int receivePasvResponse(pair<string, int>& dest); + int32_t receiveResponse(); + int32_t receiveSizeResponse(int64_t& size); + int32_t receivePasvResponse(pair<string, int32_t>& dest); }; #endif // _D_FTP_CONNECTION_H_ |
