MCPcopy Create free account

hub / github.com/Olament/gDHT / functions

Functions228 in github.com/Olament/gDHT

↓ 39 callersMethodString
String returns the bit sequence string of the bitmap.
crawler/dht/bitmap.go:135
↓ 23 callersMethodRawString
RawString returns the string value of bitmap.data.
crawler/dht/bitmap.go:151
↓ 20 callersMethodKBucket
KBucket returns the bucket routingTableNode holds.
crawler/dht/routingtable.go:279
↓ 18 callersMethodSet
Set sets the bit at idnex to 1.
crawler/dht/bitmap.go:86
↓ 16 callersFunctionsend
send sends data to the udp.
crawler/dht/krpc.go:128
↓ 15 callersMethodGet
Get returns the value mapped to key.
crawler/dht/container.go:28
↓ 14 callersMethodIter
Iter returns a chan which output all items.
crawler/dht/container.go:77
↓ 12 callersMethodBit
Bit returns the bit at index.
crawler/dht/bitmap.go:61
↓ 11 callersMethodLen
()
crawler/dht/routingtable.go:549
↓ 11 callersMethodLen
Len returns the length of syncedMap.
crawler/dht/container.go:94
↓ 11 callersFunctionParseKey
ParseKey parses the key in dict data. `t` is type of the keyed value. It's one of "int", "string", "map", "list".
crawler/dht/krpc.go:371
↓ 10 callersMethodDelete
Delete deletes the key in the map.
crawler/dht/container.go:51
↓ 10 callersMethodid
id returns a id near to target if target is not null, otherwise it returns the dht's node id.
crawler/dht/dht.go:231
↓ 9 callersFunctionmakeError
makeError returns a err-formed data.
crawler/dht/krpc.go:119
↓ 8 callersMethodPush
(x interface{})
crawler/dht/routingtable.go:561
↓ 8 callersFunctionnewSyncedMap
newSyncedMap returns a syncedMap pointer.
crawler/dht/container.go:20
↓ 7 callersMethodChild
Child returns routingTableNode's left or right child.
crawler/dht/routingtable.go:258
↓ 7 callersMethodPushBack
PushBack pushs an element to the tail of slist.
crawler/dht/container.go:140
↓ 7 callersFunctionnewBitmapFromString
newBitmapFromString returns a bitmap pointer created from a string.
crawler/dht/bitmap.go:56
↓ 6 callersFunctionDecode
Decode decodes a bencoded string to string, int, list or map.
crawler/dht/bencode.go:192
↓ 6 callersMethodInsert
Insert inserts node to the bucket. It returns whether the node is new in the bucket.
crawler/dht/routingtable.go:196
↓ 6 callersMethodin
validate checks whether ip-port pair is in the block nodes list.
crawler/dht/blacklist.go:60
↓ 6 callersFunctionmakeResponse
makeResponse returns a response-formed data.
crawler/dht/krpc.go:110
↓ 6 callersFunctionnewBitmap
newBitmap returns a size-length bitmap pointer.
crawler/dht/bitmap.go:16
↓ 5 callersMethodClear
Clear resets the data.
crawler/dht/container.go:69
↓ 5 callersMethodFront
Front returns the first element of slist.
crawler/dht/container.go:116
↓ 5 callersFunctionParseKeys
ParseKeys parses keys. It just wraps ParseKey.
crawler/dht/krpc.go:398
↓ 5 callersMethodRemove
Remove deletes the node whose id is `id`.
crawler/dht/routingtable.go:486
↓ 5 callersMethodinsert
insert adds a transaction to transactionManager.
crawler/dht/krpc.go:204
↓ 5 callersMethodinsert
insert adds a blocked item to the blacklist.
crawler/dht/blacklist.go:42
↓ 5 callersFunctionnewKeyedDeque
newKeyedDeque returns a newKeyedDeque pointer.
crawler/dht/container.go:214
↓ 4 callersMethodCompare
Compare compares the prefixLen-prefix of two bitmap. - If bitmap.data[:prefixLen] < other.data[:prefixLen], return -1. - If bitmap.data[:prefixLen] >
crawler/dht/bitmap.go:99
↓ 4 callersMethodHasKey
Has returns whether key already exists.
crawler/dht/container.go:245
↓ 4 callersFunctiongenAddress
genAddress returns a ip:port address.
crawler/dht/util.go:132
↓ 4 callersMethodgenKey
genKey returns a key. If port is less than 0, the key wil be ip. Ohterwise it will be `ip:port` format.
crawler/dht/blacklist.go:33
↓ 4 callersFunctionhumanFileSize
(bytes, dp=1)
web/src/components/list.js:7
↓ 4 callersFunctionnewNode
newNode returns a node pointer.
crawler/dht/routingtable.go:23
↓ 4 callersFunctionrandomString
randomString generates a size-length string randomly.
crawler/dht/util.go:15
↓ 4 callersMethodsendQuery
sendQuery send query-formed data to the chan.
crawler/dht/krpc.go:316
↓ 3 callersMethodCompactIPPortInfo
CompactIPPortInfo returns "Compact IP-address/port info". See http://www.bittorrent.org/beps/bep_0005.html.
crawler/dht/routingtable.go:52
↓ 3 callersMethodDeleteMulti
DeleteMulti deletes keys in batch.
crawler/dht/container.go:59
↓ 3 callersFunctionEncode
Encode encodes a string, int, dict or list value to a bencoded string.
crawler/dht/bencode.go:250
↓ 3 callersFunctionEncodeString
EncodeString encodes a string value.
crawler/dht/bencode.go:198
↓ 3 callersMethodGetNeighbors
GetNeighbors returns the size-length nodes closest to id.
crawler/dht/routingtable.go:418
↓ 3 callersMethodIsStandardMode
IsStandardMode returns whether mode is StandardMode.
crawler/dht/dht.go:170
↓ 3 callersMethodRemove
Remove removes e from the slist.
crawler/dht/container.go:168
↓ 3 callersMethodRemoveByAddr
Remove deletes the node whose address is `ip:port`.
crawler/dht/routingtable.go:495
↓ 3 callersMethodSend
(ctx context.Context, in *BitTorrent, opts ...grpc.CallOption)
service/bittorrent_grpc.pb.go:20
↓ 3 callersMethodUpdateTimestamp
UpdateTimestamp update bucket's last changed time..
crawler/dht/routingtable.go:187
↓ 3 callersMethodclear
clear removes expired tokens.
crawler/dht/krpc.go:72
↓ 3 callersFunctiondecodeCompactIPPortInfo
decodeCompactIPPortInfo decodes compactIP-address/port info in BitTorrent DHT Protocol. It returns the ip and port number.
crawler/dht/util.go:54
↓ 3 callersFunctiondecodeItem
decodeItem decodes an item of dict or list.
crawler/dht/bencode.go:85
↓ 3 callersFunctionencodeCompactIPPortInfo
encodeCompactIPPortInfo encodes an ip and a port number to compactIP-address/port info.
crawler/dht/util.go:67
↓ 3 callersFunctionfile_bittorrent_proto_rawDescGZIP
()
service/bittorrent.pb.go:222
↓ 3 callersMethodfindNode
findNode sends find_node query to the chan.
crawler/dht/krpc.go:341
↓ 3 callersFunctionint2bytes
int2bytes returns the byte array it represents.
crawler/dht/util.go:35
↓ 3 callersFunctionnewBlackList
newBlackList returns a blackList pointer.
crawler/dht/blacklist.go:23
↓ 3 callersFunctionnewSyncedList
newSyncedList returns a syncedList pointer.
crawler/dht/container.go:108
↓ 3 callersFunctionread
read reads size-length bytes from conn to data.
crawler/dht/peerwire.go:41
↓ 3 callersMethodtoken
token returns a token. If it doesn't exist or is expired, it will add a new token.
crawler/dht/krpc.go:55
↓ 2 callersMethodBack
Back returns the last element of slist.
crawler/dht/container.go:124
↓ 2 callersMethodCompactNodeInfo
CompactNodeInfo returns "Compact node info". See http://www.bittorrent.org/beps/bep_0005.html.
crawler/dht/routingtable.go:59
↓ 2 callersFunctionEncodeDict
EncodeDict encodes a dict value.
crawler/dht/bencode.go:236
↓ 2 callersFunctionEncodeInt
EncodeInt encodes a int value.
crawler/dht/bencode.go:203
↓ 2 callersFunctionEncodeList
EncodeList encodes a list value.
crawler/dht/bencode.go:225
↓ 2 callersMethodFresh
Fresh pings the expired nodes in the bucket.
crawler/dht/routingtable.go:233
↓ 2 callersMethodGetNeighborCompactInfos
GetNeighborIds return the size-length compact node info closest to id.
crawler/dht/routingtable.go:436
↓ 2 callersMethodGetNodeKBucktByID
GetNodeKBucktById returns node whose id is `id` and the bucket it belongs to.
crawler/dht/routingtable.go:449
↓ 2 callersMethodHas
Has returns whether the syncedMap contains the key.
crawler/dht/container.go:37
↓ 2 callersMethodIsCrawlMode
IsCrawlMode returns whether mode is CrawlMode.
crawler/dht/dht.go:175
↓ 2 callersFunctionNewStandardConfig
NewStandardConfig returns a Config pointer with default values.
crawler/dht/dht.go:76
↓ 2 callersMethodPop
()
crawler/dht/routingtable.go:565
↓ 2 callersMethodXor
Xor returns the xor value of two bitmap.
crawler/dht/bitmap.go:123
↓ 2 callersFunctionbytes2int
bytes2int returns the int value it represents.
crawler/dht/util.go:22
↓ 2 callersMethoddelete
delete removes a transaction from transactionManager.
crawler/dht/krpc.go:213
↓ 2 callersFunctionencodeItem
EncodeItem encodes an item of dict or list.
crawler/dht/bencode.go:208
↓ 2 callersMethodfilterOne
transaction gets the proper transaction with whose id is transId and address is addr.
crawler/dht/krpc.go:262
↓ 2 callersFunctionfind
find returns the index of first target in data starting from `start`. It returns -1 if target not found.
crawler/dht/bencode.go:14
↓ 2 callersFunctionfindOn
findOn puts nodes in the response to the routingTable, then if target is in the nodes or all nodes are in the routingTable, it stops. Otherwise it con
crawler/dht/krpc.go:595
↓ 2 callersMethodgenIndexKey
genIndexKey generates an indexed key which consists of queryType and address.
crawler/dht/krpc.go:194
↓ 2 callersMethodgenIndexKeyByTrans
genIndexKeyByTrans generates an indexed key by a transaction.
crawler/dht/krpc.go:199
↓ 2 callersMethodgetPeers
getPeers sends get_peers query to the chan.
crawler/dht/krpc.go:349
↓ 2 callersMethodjoin
join makes current node join the dht network.
crawler/dht/dht.go:199
↓ 2 callersFunctionnewBitmapFrom
newBitmapFrom returns a new copyed bitmap pointer which newBitmap.data = other.data[:size].
crawler/dht/bitmap.go:26
↓ 2 callersFunctionnewBitmapFromBytes
newBitmapFromBytes returns a bitmap pointer created from a byte array.
crawler/dht/bitmap.go:49
↓ 2 callersFunctionnewPeer
newPeer returns a new peer pointer.
crawler/dht/routingtable.go:73
↓ 2 callersFunctionnewRoutingTableNode
newRoutingTableNode returns a new routingTableNode pointer.
crawler/dht/routingtable.go:250
↓ 2 callersFunctionsendMessage
sendMessage sends data to the connection.
crawler/dht/peerwire.go:71
↓ 2 callersMethodset
set sets the bit at index `index`. If bit is true, set 1, otherwise set 0.
crawler/dht/bitmap.go:71
↓ 2 callersMethodtransaction
transaction returns a transaction. keyType should be one of 0, 1 which represents transId and index each.
crawler/dht/krpc.go:234
↓ 1 callersFunctionDecodeDict
DecodeDict decodes a map value.
crawler/dht/bencode.go:140
↓ 1 callersFunctionDecodeString
DecodeString decodes a string in the data. It returns a tuple (decoded result, the end position, error).
crawler/dht/bencode.go:24
↓ 1 callersMethodDelete
Delete deletes a value named key.
crawler/dht/container.go:251
↓ 1 callersMethodGet
Get returns the keyed value.
crawler/dht/container.go:236
↓ 1 callersMethodGetNodeByAddress
GetNodeByAddress finds node by address.
crawler/dht/routingtable.go:474
↓ 1 callersMethodGetPeers
GetPeers returns peers who have announced having infoHash.
crawler/dht/dht.go:239
↓ 1 callersMethodInsertBefore
InsertBefore inserts v before mark.
crawler/dht/container.go:148
↓ 1 callersMethodLastChanged
LastChanged return the last time when it changes.
crawler/dht/routingtable.go:169
↓ 1 callersFunctionProcess
process data from redis message queue by indexing them to elastic search
server/main.go:72
↓ 1 callersMethodPush
Push pushs a keyed-value to the end of deque.
crawler/dht/container.go:224
next →1–100 of 228, ranked by callers