Skip to content

Commit 10a6022

Browse files
authored
Merge pull request #13 from TristanHodgins/patch-1
Correct number of request/response types in documentation
2 parents 9e97aae + 0748a03 commit 10a6022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_labs/nibbletorrent-peer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Peers need to communicate with each other to request parts of a file. For this c
132132

133133
- **Version**: This field is 8 bits and will always be `0x01`. This allows clients to support future versions of the protocol where the format might be different.
134134

135-
- **Type**: This field is 8 bits and describes the type of request/response that the peer is making. There are 4 different types: hello request (0x01), hello response (0x02), piece request (0x03), piece response (0x04), and error response (0x05).
135+
- **Type**: This field is 8 bits and describes the type of request/response that the peer is making. There are 5 different types: hello request (0x01), hello response (0x02), piece request (0x03), piece response (0x04), and error response (0x05).
136136

137137
- **Length**: The length of the data field in bytes. This field is 16 bits which means the data field is limited to 65,536 bytes.
138138

0 commit comments

Comments
 (0)