| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | make clang-format using clang-format-3.6 | Tatsuhiro Tsujikawa | 2015-12-27 | 1 | -71/+100 |
| | | |||||
| * | Fixed base64::decode() return "" if input ends with garbase and no padding | Tatsuhiro Tsujikawa | 2012-07-04 | 1 | -0/+3 |
| | | |||||
| * | Rewritten base64::decode and base64::encode | Tatsuhiro Tsujikawa | 2011-11-05 | 1 | -114/+57 |
| | | |||||
| * | mv Base64.{cc,h} base64.{cc,h} | Tatsuhiro Tsujikawa | 2011-11-05 | 1 | -1/+1 |
| | | |||||
| * | 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> | Tatsuhiro Tsujikawa | 2008-02-08 | 1 | -44/+46 |
| | | | | | | | | | | Removed "using namespace std;" from all sources. Appended std:: prefix to c++ standard classes. Included string.h where mem* function are used. | ||||
| * | 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> | Tatsuhiro Tsujikawa | 2007-12-04 | 1 | -16/+196 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Added XML2SAXMetalinkProcessor class, which is a lot faster than the predecessor, Xml2MetalinkParser class. I tested them against 94KB metalink file with 1234 chunk checksums. The new one parsed it in 22msec, while it took 6000msec with old one. * src/XML2SAXMetalinkProcessor.{h, cc} * test/XML2SAXMetalinkProcessorTest.cc * src/MetalinkParserController.{h, cc} * test/MetalinkParserControllerTest.cc * src/MetalinkParserState.h: Also added 16 subclasses. * src/main.cc * src/Metalink2RequestGroup.cc * src/MetalinkHelper.cc * src/MetalinkEntry.cc * src/ChunkChecksum.h Rewritten Base64 class for better performance. * src/Base64.{h, cc} * test/Base64Test.cc * src/HttpRequest.cc | ||||
| * | 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> | Tatsuhiro Tsujikawa | 2006-07-03 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To add Metalink support(http/ftp only): * src/AbstractCommand.h (tryReserved): New function. * src/AbstractCommand.cc (execute): Call tryReserved(). (tryReserved): New function. * src/Request.h (Requests): New type definition. * src/SegmentMan.h (reserved): New variable. * src/Util.h (fileChecksum): New function. (toUpper): New function. (toLower): New function. * src/Util.cc (messageDigest.h): Included. (trim): Trim \r\n\t. (fileChecksum): New function. (toUpper): New function. (toLower): New function. * src/main.cc (normalDownload): New function. (main): Added 2 command-line options: metalink-file, metalink-connection. Their usage has not been written yet. * src/MetalinkProcessor.h: New class. * src/Xml2MetalinkProcessor.h: New class. * src/Xml2MetalinkProcessor.cc: New class. * src/MetalinkEntry.h: New class. * src/MetalinkEntry.cc: New class. * src/MetalinkResource.h: New class. * src/MetalinkResource.cc: New class. To add md5 message digest checking: * src/messageDigest.h: Rewritten. * src/MultiDiskWriter.cc: Updated according to the changes in messageDigest.h. * src/ShaVisitor.cc: Updated according to the changes in messageDigest.h. * src/Util.cc: Updated according to the changes in messageDigest.h. * src/AbstractDiskWriter.cc: Updated according to the changes in messageDigest.h. To fix a bug that causes segfault when the payload length in peer message is less than 0: * src/PeerConnection.cc: (receiveMessage): Fixed the bug. * src/PeerMessageUtil.cc (checkLength): Throw an exception if length is less than or equals to 0. To add new interfaces to Base64 encoding/decoding: * src/Base64.h (part_encode): Changed the method signature. (encode): New function(overload). (decode): New function(overload). * src/Base64.cc (part_encode): Rewritten. (encode): Rewritten. (encode): New function(overload). To prevent a peer to download same piece if there is an error in checksum: * src/PieceMessage.cc (receivedAction): Call peerInteraction->abortPiece(). | ||||
| * | Initial import | Tatsuhiro Tsujikawa | 2006-02-17 | 1 | -0/+34 |
