MCPcopy Create free account

hub / github.com/PeterKwesiAnsah/bitty / functions

Functions24 in github.com/PeterKwesiAnsah/bitty

↓ 4 callersMethodString
()
peers/peers.go:118
↓ 3 callersFunctionReadMessage
(r io.Reader)
message/message.go:44
↓ 3 callersMethodSerialize
()
message/message.go:73
↓ 1 callersMethodCheckPieceIntegrity
(downloadedPiece []byte, pieceHash [20]byte)
worker/worker.go:35
↓ 1 callersFunctionDecode
Takes a path to torrent ,read it into a bencode stream and serializes it to a bencodeTorrent Struct
bencodeTorrent/decode.go:63
↓ 1 callersMethodDownload
(pieceIndex, pieceLength int)
worker/worker.go:139
↓ 1 callersMethodDownload
(dstPath string)
torrentfile/torrentfile.go:148
↓ 1 callersMethodHasPiece
HasPiece tells if a bitfield has a particular index set
bitfield/bitfield.go:14
↓ 1 callersMethodInterested
Interested sends an Interested message to the peer
worker/worker.go:64
↓ 1 callersFunctionPeers
findPeers sends an HTTP GET request to the tracker with the specified parameters
peers/peers.go:89
↓ 1 callersFunctionRead
(conn io.Reader)
bitfield/bitfield.go:23
↓ 1 callersMethodSendUnchoke
SendUnchoke tells the peer you are ready to talk
worker/worker.go:57
↓ 1 callersMethodSerialize
()
handshake/handshake.go:54
↓ 1 callersMethodinfoHash
Serializes the bencodeInfo into a SHA-1 hash
bencodeTorrent/decode.go:32
↓ 1 callersMethodinitDownloadWorker
(peer peers.Peer, resultsQueue chan<- resultPiece, workQueue chan *worker.WorkPiece)
torrentfile/torrentfile.go:59
↓ 1 callersFunctionparsePeers
(peers []byte)
peers/peers.go:70
↓ 1 callersMethodperformHandShake
(conn net.Conn)
torrentfile/torrentfile.go:35
↓ 1 callersMethodpieceHashes
* * returns a slice of an array of bytes , with each array representing the SHA-1 hash of a piece */
bencodeTorrent/decode.go:45
↓ 1 callersMethodprocessMsg
(dm *downloadManager)
worker/worker.go:116
↓ 1 callersMethodprocessMsgPiece
read,process incoming request messages
worker/worker.go:92
↓ 1 callersMethodrequest
requests buffer from peer
worker/worker.go:71
↓ 1 callersFunctiontrackerInfo
(infoHash [20]byte, announce string, infoLength int)
peers/peers.go:36
FunctionRead
(r io.Reader)
handshake/handshake.go:22
Functionmain
()
main.go:14