diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-03-09 12:24:01 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-03-09 12:24:01 +0000 |
| commit | 032c7c28083e17bdcfd763b3cf81447b06a07978 (patch) | |
| tree | e5cc5ceb050773165df41eb7f0aed3f2a48205a0 /src/ActivePeerConnectionCommand.h | |
| parent | ca3f6e57f35c67f67c3b4f64cedded8ca23237e8 (diff) | |
2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
type cleanup for allmost all remaining files.
Diffstat (limited to 'src/ActivePeerConnectionCommand.h')
| -rw-r--r-- | src/ActivePeerConnectionCommand.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ActivePeerConnectionCommand.h b/src/ActivePeerConnectionCommand.h index 7d78c3f2..cd8ad694 100644 --- a/src/ActivePeerConnectionCommand.h +++ b/src/ActivePeerConnectionCommand.h @@ -50,17 +50,17 @@ class ActivePeerConnectionCommand : public Command, public RequestGroupAware { private: - int32_t interval; // UNIT: sec + time_t interval; // UNIT: sec DownloadEngine* e; Time checkPoint; - int32_t _thresholdSpeed; // UNIT: byte/sec - int32_t _numNewConnection; // the number of the connection to establish. + unsigned int _thresholdSpeed; // UNIT: byte/sec + size_t _numNewConnection; // the number of the connection to establish. public: ActivePeerConnectionCommand(int cuid, RequestGroup* requestGroup, DownloadEngine* e, const SharedHandle<BtContext>& btContext, - int32_t interval); + time_t interval); virtual ~ActivePeerConnectionCommand(); @@ -68,12 +68,12 @@ public: void connectToPeer(const SharedHandle<Peer>& peer); - void setThresholdSpeed(int32_t speed) + void setThresholdSpeed(unsigned int speed) { _thresholdSpeed = speed; } - void setNumNewConnection(int32_t numNewConnection) + void setNumNewConnection(size_t numNewConnection) { _numNewConnection = numNewConnection; } |
