add comment

This commit is contained in:
whr819987540 2023-04-27 16:00:04 +08:00
parent 2848a224f9
commit a6ca468094
1 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,9 @@ func (mt *MessageType) UnmarshalBinary(b []byte) error {
return nil
}
// peer messages
// All non-keepalive messages start with a single byte which gives their type.
// The possible values are:
const (
// BEP 3
Choke MessageType = 0