diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-06-25 21:29:48 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-06-25 21:35:52 +0900 |
| commit | e816c5eee46115111d706f86f7bdae303116403c (patch) | |
| tree | b5c4906440e9a23b509199770f559c2bba6569db /src/FileAllocationCommand.cc | |
| parent | aa34c077cb0adadf55a989be359c7b213f03e60a (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/FileAllocationCommand.cc')
0 files changed, 0 insertions, 0 deletions
