MCPcopy Create free account

hub / github.com/archeryue/go-torrent / functions

Functions64 in github.com/archeryue/go-torrent

↓ 17 callersMethodString
()
torrent/bitfield.go:25
↓ 7 callersFunctionMarshal
(w io.Writer, s interface{})
bencode/marshal.go:209
↓ 6 callersMethodDict
()
bencode/bencode.go:55
↓ 6 callersFunctionEncodeString
(w io.Writer, val string)
bencode/bencode.go:154
↓ 6 callersFunctionParse
(r io.Reader)
bencode/parser.go:8
↓ 5 callersMethodBencode
(w io.Writer)
bencode/bencode.go:62
↓ 5 callersFunctionEncodeInt
(w io.Writer, val int)
bencode/bencode.go:189
↓ 5 callersMethodInt
()
bencode/bencode.go:41
↓ 5 callersMethodList
()
bencode/bencode.go:48
↓ 5 callersFunctionUnmarshal
(r io.Reader, s interface{})
bencode/marshal.go:10
↓ 4 callersFunctionDecodeInt
(r io.Reader)
bencode/bencode.go:206
↓ 4 callersFunctionDecodeString
(r io.Reader)
bencode/bencode.go:170
↓ 4 callersMethodStr
()
bencode/bencode.go:34
↓ 4 callersFunctionobjAssertInt
(t *testing.T, expect int, o *BObject)
bencode/parser_test.go:17
↓ 3 callersFunctionParseFile
(r io.Reader)
torrent/torrent_file.go:35
↓ 3 callersFunctionmarshalValue
(w io.Writer, v reflect.Value)
bencode/marshal.go:166
↓ 3 callersFunctionobjAssertStr
(t *testing.T, expect string, o *BObject)
bencode/parser_test.go:10
↓ 2 callersMethodHasPiece
(index int)
torrent/bitfield.go:7
↓ 2 callersFunctionNewConn
(peer PeerInfo, infoSHA [SHALEN]byte, peerId [IDLEN]byte)
torrent/peer.go:165
↓ 2 callersMethodReadMsg
()
torrent/peer.go:84
↓ 2 callersMethodWriteMsg
(m *PeerMsg)
torrent/peer.go:110
↓ 2 callersMethodgetPieceBounds
(index int)
torrent/download.go:149
↓ 2 callersFunctionreadDecimal
(r *bufio.Reader)
bencode/bencode.go:101
↓ 2 callersFunctionunmarshalDict
p.Kind() must be Ptr && p.Elem().Type().Kind() must be Struct
bencode/marshal.go:105
↓ 2 callersFunctionunmarshalList
p.Kind must be Ptr && p.Elem().Type().Kind() must be Slice
bencode/marshal.go:41
↓ 2 callersFunctionwriteDecimal
(w *bufio.Writer, val int)
bencode/bencode.go:122
↓ 1 callersFunctionCopyPieceData
(index int, buf []byte, msg *PeerMsg)
torrent/peer.go:123
↓ 1 callersFunctionFindPeers
(tf *TorrentFile, peerId [IDLEN]byte)
torrent/tracker.go:70
↓ 1 callersFunctionGetHaveIndex
(msg *PeerMsg)
torrent/peer.go:146
↓ 1 callersFunctionNewHandShakeMsg
(infoSHA, peerId [IDLEN]byte)
torrent/handshake.go:19
↓ 1 callersFunctionNewRequestMsg
(index, offset, length int)
torrent/peer.go:157
↓ 1 callersFunctionReadHandshake
(r io.Reader)
torrent/handshake.go:38
↓ 1 callersMethodSetPiece
(index int)
torrent/bitfield.go:16
↓ 1 callersFunctionWriteHandShake
(w io.Writer, msg *HandshakeMsg)
torrent/handshake.go:27
↓ 1 callersFunctionbuildPeerInfo
(peers []byte)
torrent/tracker.go:55
↓ 1 callersFunctionbuildUrl
(tf *TorrentFile, peerId [IDLEN]byte)
torrent/tracker.go:34
↓ 1 callersFunctioncheckNum
(data byte)
bencode/bencode.go:97
↓ 1 callersFunctioncheckPiece
(task *pieceTask, res *pieceResult)
torrent/download.go:108
↓ 1 callersFunctiondownloadPiece
(conn *PeerConn, task *pieceTask)
torrent/download.go:75
↓ 1 callersFunctionfillBitfield
(c *PeerConn)
torrent/peer.go:65
↓ 1 callersMethodhandleMsg
()
torrent/download.go:44
↓ 1 callersFunctionhandshake
(conn net.Conn, infoSHA [SHALEN]byte, peerId [IDLEN]byte)
torrent/peer.go:41
↓ 1 callersFunctionmarshalDict
(w io.Writer, vd reflect.Value)
bencode/marshal.go:192
↓ 1 callersFunctionmarshalList
(w io.Writer, vl reflect.Value)
bencode/marshal.go:181
↓ 1 callersMethodpeerRoutine
(peer PeerInfo, taskQueue chan *pieceTask, resultQueue chan *pieceResult)
torrent/download.go:117
FunctionDownload
(task *TorrentTask)
torrent/download.go:158
FunctionTestBencode
generated by ChatGPT-GPT4.0
bencode/bencode_test.go:53
FunctionTestInt
(t *testing.T)
bencode/bencode_test.go:29
FunctionTestMarshalBasic
(t *testing.T)
bencode/marshal_test.go:31
FunctionTestParseComMap
(t *testing.T)
bencode/parser_test.go:83
FunctionTestParseFile
(t *testing.T)
torrent/torrent_file_test.go:11
FunctionTestParseInt
(t *testing.T)
bencode/parser_test.go:36
FunctionTestParseList
(t *testing.T)
bencode/parser_test.go:48
FunctionTestParseMap
(t *testing.T)
bencode/parser_test.go:67
FunctionTestParseString
(t *testing.T)
bencode/parser_test.go:24
FunctionTestPeer
(t *testing.T)
torrent/peer_test.go:12
FunctionTestString
(t *testing.T)
bencode/bencode_test.go:10
FunctionTestTracker
(t *testing.T)
torrent/tracker_test.go:11
FunctionTestUnmarshalList
(t *testing.T)
bencode/marshal_test.go:45
FunctionTestUnmarshalRole
(t *testing.T)
bencode/marshal_test.go:70
FunctionTestUnmarshalScore
(t *testing.T)
bencode/marshal_test.go:84
FunctionTestUnmarshalTeam
(t *testing.T)
bencode/marshal_test.go:98
FunctionTestUnmarshalUser
(t *testing.T)
bencode/marshal_test.go:57
Functionmain
()
cmd/main.go:12