diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-08 14:11:36 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-08 14:11:36 +0000 |
| commit | 7cd9b21937c42606354610c7ae85a0857b474cf5 (patch) | |
| tree | 21edec9e14d7bde8cfa705840a6e9756b732e1e5 /src/PeerInitiateConnectionCommand.cc | |
| parent | 2dc4bf01ad3b9be3de22696128e8007cf81a5345 (diff) | |
2010-06-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made public member variables of DownloadEngine private. Added
accessor funcs.
Diffstat (limited to 'src/PeerInitiateConnectionCommand.cc')
| -rw-r--r-- | src/PeerInitiateConnectionCommand.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/PeerInitiateConnectionCommand.cc b/src/PeerInitiateConnectionCommand.cc index 4f3012af..8374222a 100644 --- a/src/PeerInitiateConnectionCommand.cc +++ b/src/PeerInitiateConnectionCommand.cc @@ -49,6 +49,10 @@ #include "RequestGroup.h" #include "DownloadContext.h" #include "util.h" +#include "FileAllocationEntry.h" +#include "CheckIntegrityEntry.h" +#include "RequestGroupMan.h" +#include "ServerStatMan.h" namespace aria2 { @@ -89,13 +93,13 @@ bool PeerInitiateConnectionCommand::executeInternal() { _btRuntime, socket); c->setPeerStorage(_peerStorage); c->setPieceStorage(_pieceStorage); - e->commands.push_back(c); + e->addCommand(c); } else { PeerInteractionCommand* command = new PeerInteractionCommand (cuid, _requestGroup, peer, e, _btRuntime, _pieceStorage, _peerStorage, socket, PeerInteractionCommand::INITIATOR_SEND_HANDSHAKE); - e->commands.push_back(command); + e->addCommand(command); } return true; } @@ -110,7 +114,7 @@ bool PeerInitiateConnectionCommand::prepareForNextPeer(time_t wait) { _btRuntime); command->setPeerStorage(_peerStorage); command->setPieceStorage(_pieceStorage); - e->commands.push_back(command); + e->addCommand(command); } return true; } |
