Documentation ¶
Index ¶
Constants ¶
View Source
const ( MsgChoke messageID = 0 MsgUnchoke messageID = 1 MsgInterested messageID = 2 MsgNotInterested messageID = 3 MsgHave messageID = 4 MsgBitfield messageID = 5 MsgRequest messageID = 6 MsgPiece messageID = 7 MsgCancel messageID = 8 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { ID messageID Payload []byte }
func FormatRequest ¶
FormatRequest create a REUQEST message
Click to show internal directories.
Click to hide internal directories.