summaryrefslogtreecommitdiff
path: root/test/PeerConnectionTest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Extend maximum BitTorrent incoming payload size to 64KiBTatsuhiro Tsujikawa2016-07-201-1/+1
|
* BitTorrent: Allow 32KiB requestTatsuhiro Tsujikawa2016-06-101-1/+1
| | | | | | It looks like the 32KiB is the default request size of python bittorrent client. Previously, aria2 only allowed maximum 16KiB request.
* make clang-format using clang-format-3.6Tatsuhiro Tsujikawa2015-12-271-2/+4
|
* Use user-defined literal for k, m, and g (powers of 1024)Tatsuhiro Tsujikawa2015-06-211-1/+1
|
* Require -std=c++11 and use std::shared_ptr instead of SharedHandleTatsuhiro Tsujikawa2013-06-221-1/+1
|
* Rewritten PeerConnection::receiveMessage()Tatsuhiro Tsujikawa2012-06-251-2/+2
| | | | | | | The old implementation calls at least 2 read(2) (4bytes length and payload) to receive the message. This change will read as many bytes as possible in one read(2) call. BtPieceMessage::data_ is now just a const pointer to the internal buffer of PeerConnection.
* Reserve PeerConnection's buffer capacity according to number of pieces.Tatsuhiro Tsujikawa2012-02-091-0/+37
If the number of pieces gets bigger, the length of Bitfield message payload exceeds the initial buffer capacity of PeerConnection, which is MAX_PAYLOAD_LEN. We expand buffer as necessary so that PeerConnection can receive the Bitfield message.