MCPcopy Create free account

hub / github.com/Olament/gDHT / functions

Functions228 in github.com/Olament/gDHT

↓ 1 callersMethodRandomChildID
RandomChildID returns a random id that has the same prefix with bucket.
crawler/dht/routingtable.go:177
↓ 1 callersMethodReplace
Replace removes node, then put bucket.candidates.Back() to the right place of bucket.nodes.
crawler/dht/routingtable.go:207
↓ 1 callersMethodRequest
Request pushes the request to the queue.
crawler/dht/peerwire.go:185
↓ 1 callersMethodReset
()
service/bittorrent.pb.go:146
↓ 1 callersMethodResponse
Response returns a chan of Response.
crawler/dht/peerwire.go:190
↓ 1 callersMethodRun
Run starts the peer wire protocol.
crawler/dht/peerwire.go:362
↓ 1 callersMethodRun
Run starts the dht.
crawler/dht/dht.go:267
↓ 1 callersMethodSetChild
SetChild sets routingTableNode's left or right child. When index is 0, it's the left child, if 1, it's the right child.
crawler/dht/routingtable.go:271
↓ 1 callersMethodSetKBucket
SetKBucket sets the bucket.
crawler/dht/routingtable.go:287
↓ 1 callersMethodSplit
Split splits current routingTableNode and sets it's two children.
crawler/dht/routingtable.go:295
↓ 1 callersMethodUnset
Unset sets the bit at idnex to 0.
crawler/dht/bitmap.go:91
↓ 1 callersMethodcheck
check returns whether the token is valid.
crawler/dht/krpc.go:87
↓ 1 callersMethoddelete
delete removes blocked item form the blackList.
crawler/dht/blacklist.go:55
↓ 1 callersMethodfetchMetadata
fetchMetadata fetchs medata info accroding to infohash from dht.
crawler/dht/peerwire.go:226
↓ 1 callersFunctionfile_bittorrent_proto_init
()
service/bittorrent.pb.go:247
↓ 1 callersMethodgenTransID
genTransID generates a transaction id and returns it.
crawler/dht/krpc.go:175
↓ 1 callersMethodgetByIndex
getByIndex returns a transaction by indexed key.
crawler/dht/krpc.go:256
↓ 1 callersMethodgetByTransID
getByTransID returns a transaction by transID.
crawler/dht/krpc.go:251
↓ 1 callersFunctiongetLocalIPs
getLocalIPs returns local ips.
crawler/dht/util.go:85
↓ 1 callersFunctiongetRemoteIP
getRemoteIP returns the wlan ip.
crawler/dht/util.go:104
↓ 1 callersFunctiongetTopK
getTopK solves the top-k problem with heap. It's time complexity is O(n*log(k)). When n is large, time complexity will be too high, need to be optimiz
crawler/dht/routingtable.go:575
↓ 1 callersFunctiongetUTMetaSize
getUTMetaSize returns the ut_metadata and metadata_size.
crawler/dht/peerwire.go:115
↓ 1 callersFunctionhandle
handle handles packets received from udp.
crawler/dht/krpc.go:755
↓ 1 callersFunctionhandleFiles
(torrent)
web/src/components/list.js:64
↓ 1 callersMethodinit
init initializes global varables.
crawler/dht/dht.go:180
↓ 1 callersMethodisDone
isDone returns whether the wire get all pieces of the metadata info.
crawler/dht/peerwire.go:195
↓ 1 callersMethodlen
len returns how many transactions are requesting now.
crawler/dht/krpc.go:228
↓ 1 callersMethodlisten
listen receives message from udp.
crawler/dht/dht.go:215
↓ 1 callersFunctionmakeQuery
makeQuery returns a query-formed data.
crawler/dht/krpc.go:100
↓ 1 callersFunctionnewKBucket
newKBucket returns a new kbucket pointer.
crawler/dht/routingtable.go:158
↓ 1 callersFunctionnewNodeFromCompactInfo
newNodeFromCompactInfo parses compactNodeInfo and returns a node pointer.
crawler/dht/routingtable.go:37
↓ 1 callersFunctionnewPeerFromCompactIPPortInfo
newPeerFromCompactIPPortInfo create a peer pointer by compact ip/port info.
crawler/dht/routingtable.go:82
↓ 1 callersFunctionnewPeersManager
newPeersManager returns a new peersManager.
crawler/dht/routingtable.go:106
↓ 1 callersFunctionnewRoutingTable
newRoutingTable returns a new routingTable pointer.
crawler/dht/routingtable.go:338
↓ 1 callersFunctionnewTokenManager
newTokenManager returns a new tokenManager.
crawler/dht/krpc.go:45
↓ 1 callersMethodnewTransaction
newTransaction creates a new transaction.
crawler/dht/krpc.go:184
↓ 1 callersFunctionnewTransactionManager
newTransactionManager returns new transactionManager pointer.
crawler/dht/krpc.go:163
↓ 1 callersFunctiononHandshake
onHandshake handles the handshake response.
crawler/dht/peerwire.go:95
↓ 1 callersFunctionparseMessage
parseMessage parses the basic data received from udp. It returns a map value.
crawler/dht/krpc.go:410
↓ 1 callersMethodping
ping sends ping query to the chan.
crawler/dht/krpc.go:334
↓ 1 callersMethodquery
query sends the query-formed data to udp and wait for the response. When timeout, it will retry `try - 1` times, which means it will query `try` times
crawler/dht/krpc.go:276
↓ 1 callersFunctionreadMessage
readMessage gets a message from the tcp connection.
crawler/dht/peerwire.go:52
↓ 1 callersMethodrender
()
web/src/components/search.js:31
↓ 1 callersMethodrequestPieces
( conn *net.TCPConn, utMetadata int, metadataSize int, piecesNum int)
crawler/dht/peerwire.go:204
↓ 1 callersMethodrun
run starts to listen and consume the query chan.
crawler/dht/krpc.go:304
↓ 1 callersFunctionsendExtHandshake
sendExtHandshake requests for the ut_metadata and metadata_size.
crawler/dht/peerwire.go:103
↓ 1 callersFunctionsendHandshake
sendHandshake sends handshake message to conn.
crawler/dht/peerwire.go:83
↓ 1 callersFunctionxor
(dst, a, b []byte)
crawler/dht/bitmap_xor.go:5
MethodClear
Clear resets the list queue.
crawler/dht/container.go:176
MethodClear
Clear resets the deque.
crawler/dht/container.go:282
MethodCompactIPPortInfo
CompactIPPortInfo returns "Compact node info". See http://www.bittorrent.org/beps/bep_0005.html.
crawler/dht/routingtable.go:93
FunctionDecodeInt
DecodeInt decodes int value in the data.
crawler/dht/bencode.go:60
FunctionDecodeList
DecodeList decodes a list value.
crawler/dht/bencode.go:104
MethodDescriptor
Deprecated: Use Empty.ProtoReflect.Descriptor instead.
service/bittorrent.pb.go:62
MethodDescriptor
Deprecated: Use BitTorrent.ProtoReflect.Descriptor instead.
service/bittorrent.pb.go:105
MethodDescriptor
Deprecated: Use File.ProtoReflect.Descriptor instead.
service/bittorrent.pb.go:174
MethodFresh
Fresh sends findNode to all nodes in the expired nodes.
crawler/dht/routingtable.go:503
MethodGetFiles
()
service/bittorrent.pb.go:123
MethodGetInfohash
()
service/bittorrent.pb.go:109
MethodGetLength
()
service/bittorrent.pb.go:130
MethodGetLength
()
service/bittorrent.pb.go:185
MethodGetName
()
service/bittorrent.pb.go:116
MethodGetPath
()
service/bittorrent.pb.go:178
MethodGetPeers
GetPeers returns size-length peers who announces having infoHash.
crawler/dht/routingtable.go:131
MethodInsert
Insert adds a peer into peersManager.
crawler/dht/routingtable.go:114
MethodInsert
Insert adds a node to routing table. It returns whether the node is new in the routingtable.
crawler/dht/routingtable.go:357
MethodInsertAfter
InsertAfter inserts v after mark.
crawler/dht/container.go:158
MethodIter
Iter returns a chan which output all elements.
crawler/dht/container.go:192
MethodLen
Len returns the number of nodes in table.
crawler/dht/routingtable.go:534
MethodLen
Len returns length of the slist.
crawler/dht/container.go:184
MethodLess
(i, j int)
crawler/dht/routingtable.go:553
FunctionNew
New returns a DHT pointer. If config is nil, then config will be set to the default config.
crawler/dht/dht.go:133
FunctionNewBitTorrentClient
(cc grpc.ClientConnInterface)
service/bittorrent_grpc.pb.go:27
FunctionNewCrawlConfig
NewCrawlConfig returns a config in crawling mode.
crawler/dht/dht.go:104
FunctionNewWire
NewWire returns a Wire pointer. - blackListSize: the blacklist size - requestQueueSize: the max requests it can buffers - workerQueueSize: the max gor
crawler/dht/peerwire.go:174
MethodProtoMessage
()
service/bittorrent.pb.go:47
MethodProtoMessage
()
service/bittorrent.pb.go:90
MethodProtoMessage
()
service/bittorrent.pb.go:159
MethodProtoReflect
()
service/bittorrent.pb.go:49
MethodProtoReflect
()
service/bittorrent.pb.go:92
MethodProtoReflect
()
service/bittorrent.pb.go:161
MethodPushFront
PushFront pushs an element to the head of slist.
crawler/dht/container.go:132
FunctionRegisterBitTorrentServer
(s *grpc.Server, srv BitTorrentServer)
service/bittorrent_grpc.pb.go:57
MethodRemove
Removes overwrites list.List.Remove.
crawler/dht/container.go:269
MethodReset
()
service/bittorrent.pb.go:34
MethodReset
()
service/bittorrent.pb.go:77
MethodSend
(ctx context.Context, in *BitTorrent, opts ...grpc.CallOption)
service/bittorrent_grpc.pb.go:31
MethodSend
(context.Context, *BitTorrent)
service/bittorrent_grpc.pb.go:44
MethodSend
(context.Context, *BitTorrent)
service/bittorrent_grpc.pb.go:52
MethodSend
(ctx context.Context, in *pb.BitTorrent)
server/main.go:42
MethodSet
Set sets pair {key: val}.
crawler/dht/container.go:43
MethodString
()
service/bittorrent.pb.go:43
MethodString
()
service/bittorrent.pb.go:86
MethodString
()
service/bittorrent.pb.go:155
MethodSwap
(i, j int)
crawler/dht/routingtable.go:557
FunctionTestBitmap
(t *testing.T)
crawler/dht/bitmap_test.go:7
FunctionTestBlackList
(t *testing.T)
crawler/dht/blacklist_test.go:35
FunctionTestBytes2Int
(t *testing.T)
crawler/dht/util_test.go:32
FunctionTestDecodeCompactIPPortInfo
(t *testing.T)
crawler/dht/util_test.go:50
FunctionTestDecodeDict
(t *testing.T)
crawler/dht/bencode_test.go:97
← previousnext →101–200 of 228, ranked by callers