nt92/BitTorrent

Messages

Closed this issue · 0 comments

Details

message length message type payload
  • Message length: 4 byte field, specifies the message length in bytes
  • Message type: Specifies the type of message. See below.
  • Message payload: Variable size, varies by message type.

Message types

message type value
choke 0
unchoke 1
interested 2
not interested 3
have 4
bitfield 5
request 6
piece 7

Message payloads

To do...