summaryrefslogtreecommitdiff
path: root/src/DHTEntryPointNameResolveCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-02-28 12:30:11 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-02-28 12:30:11 +0000
commitc342bde9627b434effbc0cd10b817670d1da0923 (patch)
tree60d14bf448066b8dcd639adfa0db716d5a8258c8 /src/DHTEntryPointNameResolveCommand.h
parent135f0a2a8c4ee04a5e96d84ba558245fabfc1f5c (diff)
2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use vector instead of deque for containers which is used for mostly read-only purpose.
Diffstat (limited to 'src/DHTEntryPointNameResolveCommand.h')
-rw-r--r--src/DHTEntryPointNameResolveCommand.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/DHTEntryPointNameResolveCommand.h b/src/DHTEntryPointNameResolveCommand.h
index dadf2993..85c9c92a 100644
--- a/src/DHTEntryPointNameResolveCommand.h
+++ b/src/DHTEntryPointNameResolveCommand.h
@@ -36,10 +36,13 @@
#define _D_DHT_ENTRY_POINT_NAME_RESOVE_COMMAND_H_
#include "Command.h"
-#include "SharedHandle.h"
+
#include <utility>
+#include <vector>
#include <deque>
+#include "SharedHandle.h"
+
namespace aria2 {
class DHTTaskQueue;
@@ -69,7 +72,7 @@ private:
std::deque<std::pair<std::string, uint16_t> > _entryPoints;
- std::deque<std::pair<std::string, uint16_t> > _resolvedEntryPoints;
+ std::vector<std::pair<std::string, uint16_t> > _resolvedEntryPoints;
bool _bootstrapEnabled;
@@ -85,8 +88,9 @@ private:
#endif // ENABLE_ASYNC_DNS
public:
- DHTEntryPointNameResolveCommand(int32_t cuid, DownloadEngine* e,
- const std::deque<std::pair<std:: string, uint16_t> >& entryPoints);
+ DHTEntryPointNameResolveCommand
+ (int32_t cuid, DownloadEngine* e,
+ const std::vector<std::pair<std:: string, uint16_t> >& entryPoints);
virtual ~DHTEntryPointNameResolveCommand();