summaryrefslogtreecommitdiff
path: root/src/BtStopDownloadCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-06-25 21:29:48 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-06-25 21:35:52 +0900
commite816c5eee46115111d706f86f7bdae303116403c (patch)
treeb5c4906440e9a23b509199770f559c2bba6569db /src/BtStopDownloadCommand.cc
parentaa34c077cb0adadf55a989be359c7b213f03e60a (diff)
Rewritten PeerConnection::receiveMessage()
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.
Diffstat (limited to 'src/BtStopDownloadCommand.cc')
0 files changed, 0 insertions, 0 deletions