diff --git a/peer_protocol/protocol.go b/peer_protocol/protocol.go index bfeb6a04..c9e41ccb 100644 --- a/peer_protocol/protocol.go +++ b/peer_protocol/protocol.go @@ -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