From 01e1fdaf495342ae8735ec74eb57f912fa67d535 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 26 Jul 2012 21:07:10 +0900 Subject: Parse torrent file on the fly if --follow-torrent=mem is given In this changes, Bencode parser in bencode2 is removed and the request is delegated to BencodeParser. --- src/BencodeDiskWriterFactory.h | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/BencodeDiskWriterFactory.h (limited to 'src/BencodeDiskWriterFactory.h') diff --git a/src/BencodeDiskWriterFactory.h b/src/BencodeDiskWriterFactory.h new file mode 100644 index 00000000..a4a6038b --- /dev/null +++ b/src/BencodeDiskWriterFactory.h @@ -0,0 +1,51 @@ +/* */ +#ifndef D_BENCODE_DISK_WRITER_FACTORY_H +#define D_BENCODE_DISK_WRITER_FACTORY_H + +#include "AnonDiskWriterFactory.h" +#include "BencodeDiskWriter.h" + +namespace aria2 { + +namespace bittorrent { + +typedef AnonDiskWriterFactory BencodeDiskWriterFactory; + +} // namespace bittorrent + +} // namespace aria2 + +#endif // D_BENCODE_DISK_WRITER_FACTORY_H -- cgit