6 Protocol = "\x13BitTorrent protocol"
13 // Hopefully uncaught panics format using this so we don't just see a pair of
14 // unhelpful uintptrs.
15 func (me MessageType) String() string {
16 return strconv.FormatInt(int64(me), 10)
19 func (mt MessageType) FastExtension() bool {
20 return mt >= Suggest && mt <= AllowedFast
24 Choke MessageType = iota
40 AllowedFast = 0x11 // 17
44 HandshakeExtendedID = 0
46 RequestMetadataExtensionMsgType = 0
47 DataMetadataExtensionMsgType = 1
48 RejectMetadataExtensionMsgType = 2