Commit Graph

529 Commits (630cee3cb7da78b78d4b771b9a6ebd7b3cbbdb01)

Author SHA1 Message Date
Tatsuhiro Tsujikawa 198b87fa3e * replaced std::vector with std::deque. 2006-03-22 16:21:11 +00:00
Tatsuhiro Tsujikawa 26aa28acb3 * PeerInteractionCommand.cc: added a call to
TorrentMan::unadvertisePiece in Destructor.
	* PeerInteractionCommand.cc: make have message sent immediately
	if the size of pending message queue is zero.
	* TorrentMan.cc: set the maximum size of peer list to 250.
	* TorrentMan.h: changed the container type of Peers and 
UsedPieces
	to deque.
	* Util.cc: fixed rangedFileCopy.
	* AbstractDiskWriter.{h,cc}: moved digest context initialization
	to Constructor. Also, moved digest cleanup to Destructor.
	* MetaFileUtil.cc: fixed memory leak
2006-03-22 15:10:03 +00:00
Tatsuhiro Tsujikawa 29374cd70c 2006-03-21 15:21:11 +00:00
Tatsuhiro Tsujikawa df6c7c0385 added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
Tatsuhiro Tsujikawa a59301bef0 * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
decoding did not work properly.
2006-03-09 14:52:07 +00:00
Tatsuhiro Tsujikawa fc7f34bc1a 2006-03-07 13:33:43 +00:00
Tatsuhiro Tsujikawa 46354b7c91 Added intl/*
Added src/alloca.c
2006-03-07 13:08:09 +00:00
Tatsuhiro Tsujikawa 8d980589e3 2006-03-05 06:32:01 +00:00
Tatsuhiro Tsujikawa 0276b3bb37 * DownloadEngine.{h, cc}:
* ConsoleDownloadEngine.{h, cc}: Console output message(size, 
speed)
	is now generated by ConsoleDownloadEngine not by DownloadEngine.
	* main.cc: Download complete/abort message is now generated by 
main.
	* Makefile.am (SUBDIRS): Add m4.
	(ACLOCAL_AMFLAGS): New variable.
	(EXTRA_DIST): New variable.
	* configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
	* gettext: added gettext functionality
2006-03-02 10:43:00 +00:00
Tatsuhiro Tsujikawa 0f6d2fd451 * DownloadEngine.{h, cc}:
* ConsoleDownloadEngine.{h, cc}: Console output message(size, 
speed)
	is now generated by ConsoleDownloadEngine not by DownloadEngine.
	* main.cc: Download complete/abort message is now generated by 
main.
2006-03-02 02:54:49 +00:00
Tatsuhiro Tsujikawa bea6e0e016 2006-03-01 15:28:31 +00:00
Tatsuhiro Tsujikawa c9f8c076c3 2006-03-01 08:28:57 +00:00
Tatsuhiro Tsujikawa 4a5fa077b3 * ChunkedEncoding.cc: Added #include directive for strings.h 2006-03-01 07:46:21 +00:00
Tatsuhiro Tsujikawa dd26d75751 * Logger.h:
* SimpleLogger.{h,cc}: Changed the type of msg to const char*.
2006-03-01 07:14:52 +00:00
Tatsuhiro Tsujikawa 583e09780b * HttpConnection.cc: Added "Proxy-Connection" header to proxy
request.
	Added "User-Agent" header to CONNECT proxy request.
	Fixed "Proxy-Authorization" header. Now proxy authorization 
works
	properly.
2006-03-01 07:00:39 +00:00
Tatsuhiro Tsujikawa bc1cf6ed2d * AbstractCommand.cc:
* DownloadCommand.{h, cc}: Aborted downloading commands now 
properly
	unregister its cuid from SegmentMan.	
	* DownloadEngine.cc: .aria2 file was written when a downloading
	failed with errors.
2006-03-01 02:26:29 +00:00
Tatsuhiro Tsujikawa d770d1c40a * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a
compiler
	does not define these macros.
2006-02-28 03:09:22 +00:00
Tatsuhiro Tsujikawa 20ba8c707a * Util.{h,cc}: added startsWith().
* CookieBox.cc: rewrited criteriaFind() using Util::startsWith() 
and
	Util::endsWith().
	* SocketCore.cc: struct addrinfo is now  zero-initialized.
	* common.h: added #include directive of limit.h.
	* DownloadEngine.cc: added #include directive of sys/time.h and
	algorithm.
	* Exception.h: added #include directive of stdio.h.
	* AbstractCommand.h: added #include directive of sys/time.h.
	* DownloadCommand.h: added #include directive of sys/time.h.
	* *.h: added #include directive of common.h to all base classes.
	subclasses' one was removed.
2006-02-28 02:25:45 +00:00
Tatsuhiro Tsujikawa cd5f591c41 2006-02-22 15:40:04 +00:00
Tatsuhiro Tsujikawa 2462a3b06c 2006-02-22 14:30:47 +00:00
Tatsuhiro Tsujikawa 27d392d5f2 2006-02-22 12:16:10 +00:00
Tatsuhiro Tsujikawa ebdb4b86cf 2006-02-22 11:18:47 +00:00
Tatsuhiro Tsujikawa 28fc3405dd 2006-02-21 15:01:05 +00:00
Tatsuhiro Tsujikawa 5a8710676d 2006-02-21 12:27:17 +00:00
Tatsuhiro Tsujikawa f0f3f8b45d 2006-02-18 07:47:50 +00:00
Tatsuhiro Tsujikawa 6abf60448e * Make Request-URI an absolute path. Some servers cannot permit
absoluteURI as Request-URI.
2006-02-18 05:36:50 +00:00
Tatsuhiro Tsujikawa 5752a554bf * Added Referer support.
* Added referer command-line option.
	* Added rety-wait command-line option.
	* Fixed formating bug in Exception::setMsg()
2006-02-18 05:13:21 +00:00
Tatsuhiro Tsujikawa 2c732211f4 * Added HTTPS support.
* Added SocketCore. Socket is now handle class for SocketCore.
	* Fixed bug in ChunkedEncoding: expanding buffer size is wrong
	* Fixed bug in DownloadCommand: In Chunked Encoding, it wrongly
	adds to Segment.ds buff length from the socket.
2006-02-17 18:51:12 +00:00
Tatsuhiro Tsujikawa 52634627bc Initial import 2006-02-17 13:35:04 +00:00