2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Defined fake filename `[tracker.announce]' as static const 
std::string.
	* src/TrackerWatcherCommand.cc (createRequestGroup)
pull/1/head
Tatsuhiro Tsujikawa 2008-05-14 15:22:52 +00:00
parent 237ec10329
commit 35b219ddc8
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Defined fake filename `[tracker.announce]' as static const std::string.
* src/TrackerWatcherCommand.cc (createRequestGroup)
2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Defined default filename `index.html' as static const std::string

View File

@ -174,11 +174,12 @@ TrackerWatcherCommand::createRequestGroup(const std::string& uri)
uris.push_back(uri);
RequestGroupHandle rg(new RequestGroup(e->option, uris));
static const std::string TRACKER_ANNOUNCE_FILE("[tracker.announce]");
SingleFileDownloadContextHandle dctx
(new SingleFileDownloadContext(e->option->getAsInt(PREF_SEGMENT_SIZE),
0,
A2STR::NIL,
"[tracker.announce]"));
TRACKER_ANNOUNCE_FILE));
dctx->setDir(A2STR::NIL);
rg->setDownloadContext(dctx);
SharedHandle<DiskWriterFactory> dwf(new ByteArrayDiskWriterFactory());