Commit df48ea7f authored by Matt Joiner's avatar Matt Joiner
Browse files

krpc: Add some codes from BEP 44

parent 6eb96993
......@@ -6,12 +6,18 @@ import (
"github.com/anacrolix/torrent/bencode"
)
// These are documented in BEP 5.
const (
// These are documented in BEP 5.
ErrorCodeGenericError = 201
ErrorCodeServerError = 202
ErrorCodeProtocolError = 203
ErrorCodeMethodUnknown = 204
// BEP 44
ErrorCodeMessageValueFieldTooBig = 205
ErrorCodeInvalidSignature = 206
ErrorCodeSaltFieldTooBig = 207
ErrorCodeCasHashMismatched = 301
ErrorCodeSequenceNumberLessThanCurrent = 302
)
var ErrorMethodUnknown = Error{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment