Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GGist/bip-rs
/ functions
Functions
1,430 in github.com/GGist/bip-rs
⨍
Functions
1,430
◇
Types & classes
295
↓ 7 callers
Method
find_node
Find an instance of the target node in the RoutingTable, if it exists.
bip_dht/src/routing/table.rs:56
↓ 7 callers
Method
generate
(&mut self)
bip_util/src/trans/locally_shuffled.rs:72
↓ 7 callers
Function
handshaker
()
bip_utracker/test/mod.rs:149
↓ 7 callers
Method
id
(&self)
bip_dht/src/routing/node.rs:107
↓ 7 callers
Method
info_hash
(&self)
bip_dht/src/worker/lookup.rs:116
↓ 7 callers
Method
lookup
Look up a value in a dictionary of bencoded values using the given key.
bip_bencode/src/access/convert.rs:105
↓ 7 callers
Function
merge_piece_messages
Merge a piece message a with a piece message b if possible. First message's block offset should come before (or at) the block offset of the second me
bip_disk/src/disk/tasks/helpers/piece_checker.rs:269
↓ 7 callers
Method
notify
(&mut self, event_loop: &mut EventLoop<DhtHandler<H>>, task: OneshotTask)
bip_dht/src/worker/handler.rs:172
↓ 7 callers
Method
piece_length
Length in bytes of each piece.
bip_metainfo/src/metainfo.rs:173
↓ 7 callers
Method
pieces
Iterator over each of the pieces SHA-1 hash. Ordering of pieces yielded in the iterator is guaranteed to be the order in which they are found in the
bip_metainfo/src/metainfo.rs:187
↓ 7 callers
Method
timeout
(&self, future: F)
bip_handshake/src/handshake/handler/timer.rs:17
↓ 6 callers
Method
add_filter
(&self, filter: F)
bip_handshake/src/handshake/handshaker.rs:202
↓ 6 callers
Method
addr
(&self)
bip_dht/src/routing/node.rs:111
↓ 6 callers
Function
any_extensions
()
bip_handshake/src/bittorrent/framed.rs:159
↓ 6 callers
Function
any_info_hash
()
bip_handshake/src/bittorrent/framed.rs:155
↓ 6 callers
Function
any_peer_id
()
bip_handshake/src/bittorrent/framed.rs:151
↓ 6 callers
Method
as_ref
(&self)
bip_util/src/sha/mod.rs:47
↓ 6 callers
Function
bench_process_file_with_fs
Benchmarking method to setup a torrent file with the given attributes, and benchmark the block processing code.
bip_disk/benches/mod.rs:103
↓ 6 callers
Method
closest_nodes
Iterator over the closest good nodes to the given node id. The closeness of nodes has a maximum granularity of a bucket. For most use cases this is f
bip_dht/src/routing/table.rs:46
↓ 6 callers
Method
convert_dict
Attempt to convert the given bencode value into a dictionary. Error key is used to generate an appropriate error message should the operation return
bip_bencode/src/access/convert.rs:96
↓ 6 callers
Method
dict
(&self)
bip_bencode/src/access/bencode.rs:78
↓ 6 callers
Function
generate_compliant_id
Generates an ip address compliant node id.
bip_dht/src/security.rs:29
↓ 6 callers
Function
index_is_in_bounds
Returns true if the overflow checked index is in bounds of the given length.
bip_dht/src/routing/table.rs:442
↓ 6 callers
Method
local_request
Record that we sent the node a request.
bip_dht/src/routing/node.rs:87
↓ 6 callers
Function
metainfo
(num_pieces: usize)
bip_select/src/revelation/honest.rs:248
↓ 6 callers
Method
next
(&mut self)
bip_util/src/sha/mod.rs:104
↓ 6 callers
Method
path
Path of the file.
bip_metainfo/src/metainfo.rs:394
↓ 6 callers
Method
result
Access the result metadata for the request.
bip_utracker/src/client/mod.rs:53
↓ 6 callers
Function
travel_into_past
Allows us to time travel into the past.
bip_util/src/test.rs:14
↓ 6 callers
Method
write_bytes
Write the underlying CompactPeers to the given writer.
bip_utracker/src/contact.rs:42
↓ 6 callers
Method
write_bytes
Write the ScrapeRequest to the given writer. Ordering of the written InfoHash is identical to that of ScrapeRequest::iter().
bip_utracker/src/scrape.rs:82
↓ 5 callers
Method
bits
(&'a self)
bip_util/src/sha/mod.rs:37
↓ 5 callers
Function
broadcast_dht_event
Broadcast the given event to all of the event nodifiers.
bip_dht/src/worker/handler.rs:231
↓ 5 callers
Method
bytes
(&self)
bip_bencode/src/access/bencode.rs:70
↓ 5 callers
Method
current_bootstrap_status
(&self)
bip_dht/src/worker/bootstrap.rs:284
↓ 5 callers
Method
current_lookup_status
(&self)
bip_dht/src/worker/lookup.rs:320
↓ 5 callers
Function
dummy_block_node_ids
Generates a block of unique dummy node ids as Vec<`NodeId`>
bip_util/src/test.rs:60
↓ 5 callers
Function
eight_bytes_to_array
Convert an 8 byte value to an array of 8 bytes.
bip_util/src/convert.rs:11
↓ 5 callers
Method
filesystem
(&self)
bip_disk/src/disk/tasks/context.rs:39
↓ 5 callers
Function
fisher_shuffle
Applies a Fisher-Yates shuffle on the given list.
bip_util/src/lib.rs:41
↓ 5 callers
Method
len
(&self)
bip_bencode/src/access/list.rs:99
↓ 5 callers
Method
length
Error is with the given length/length multiple.
bip_util/src/error.rs:43
↓ 5 callers
Method
lookup_and_convert_list
Combines a lookup operation on the given key with a conversion of the value, if found, to a list.
bip_bencode/src/access/convert.rs:138
↓ 5 callers
Method
message_params
Yields the message parameters for the current connection.
bip_utracker/src/client/dispatcher.rs:374
↓ 5 callers
Method
metadata
Access the metadata for the block.
bip_disk/src/memory/block.rs:67
↓ 5 callers
Function
peek_byte
(bytes: &[u8], pos: usize)
bip_bencode/src/reference/decode.rs:145
↓ 5 callers
Method
remote_request
Record that the node sent us a request.
bip_dht/src/routing/node.rs:96
↓ 5 callers
Method
transaction_id
Transaction ID supplied with a request to uniquely identify a response.
bip_utracker/src/request.rs:102
↓ 5 callers
Method
write_len
Get the legth of the given protocol (does not include the length byte).
bip_handshake/src/message/protocol.rs:38
↓ 4 callers
Method
add
Add the given extension to the list of supported `Extensions`.
bip_handshake/src/message/extensions.rs:33
↓ 4 callers
Function
any_extensions
()
bip_handshake/src/bittorrent/message.rs:101
↓ 4 callers
Function
any_extensions
()
bip_handshake/src/handshake/handler/handshaker.rs:131
↓ 4 callers
Function
any_info_hash
()
bip_handshake/src/bittorrent/message.rs:97
↓ 4 callers
Function
any_info_hash
()
bip_handshake/src/handshake/handler/initiator.rs:52
↓ 4 callers
Function
any_peer_id
()
bip_handshake/src/bittorrent/message.rs:93
↓ 4 callers
Method
build
Build the metainfo file from the given accessor and the number of worker threads. Panics if threads is equal to zero.
bip_metainfo/src/builder/mod.rs:214
↓ 4 callers
Method
clone
(&self)
bip_disk/src/disk/tasks/context.rs:87
↓ 4 callers
Function
decode_bytes
(bytes: &'a [u8], pos: usize)
bip_bencode/src/reference/decode.rs:72
↓ 4 callers
Method
directory
Some file directory if this is a multi-file torrent, otherwise None. If you want to check to see if this is a multi-file torrent, you should check wh
bip_metainfo/src/metainfo.rs:168
↓ 4 callers
Function
initiator_handler
Handle the initiation of connections, which are returned as a HandshakeType.
bip_handshake/src/handshake/handler/initiator.rs:12
↓ 4 callers
Method
iter
Iterator over all of the contact information.
bip_utracker/src/contact.rs:52
↓ 4 callers
Function
leading_bit_count
Number of leading bits that are identical between the local and remote node ids.
bip_dht/src/routing/table.rs:158
↓ 4 callers
Method
list
(&self)
bip_bencode/src/access/bencode.rs:74
↓ 4 callers
Method
next
(&mut self)
bip_metainfo/src/iter.rs:25
↓ 4 callers
Method
num_downloads
Number of times it has been downloaded.
bip_utracker/src/scrape.rs:41
↓ 4 callers
Method
num_leechers
Current number of leechers.
bip_utracker/src/scrape.rs:46
↓ 4 callers
Method
num_seeders
Current number of seeders.
bip_utracker/src/scrape.rs:36
↓ 4 callers
Method
open_file
(&self, path: P)
bip_disk/test/mod.rs:166
↓ 4 callers
Method
piece
(&self)
bip_peer/src/message/prot_ext/ut_metadata.rs:109
↓ 4 callers
Method
query_id
Query for the id corresponding to the given `ExtendedType`.
bip_peer/src/message/bits_ext/handshake.rs:279
↓ 4 callers
Method
response_type
Actual type of response that this TrackerResponse represents.
bip_utracker/src/response.rs:101
↓ 4 callers
Method
run_with_lock
(&self, call: C)
bip_disk/test/mod.rs:151
↓ 4 callers
Method
run_with_lock_poll
(&mut self, call: F)
bip_peer/src/manager/mod.rs:176
↓ 4 callers
Function
should_filter
Computes whether or not we should filter given the parameters and filters.
bip_handshake/src/handshake/handler/mod.rs:81
↓ 4 callers
Function
should_rebootstrap
We should rebootstrap if we have a low number of nodes.
bip_dht/src/worker/handler.rs:241
↓ 4 callers
Method
socket
Socket of some type S, that we use to communicate with the peer.
bip_handshake/src/message/complete.rs:50
↓ 4 callers
Method
transaction_id
Transaction ID supplied with a response to uniquely identify a request.
bip_utracker/src/response.rs:96
↓ 4 callers
Function
u32_to_usize
Panics if the conversion from a u32 to usize is not valid.
bip_peer/src/message/mod.rs:184
↓ 4 callers
Method
with_sink_buffer_capacity
Specify the buffer capacity for pending `IDiskMessage`s.
bip_disk/src/disk/builder.rs:30
↓ 4 callers
Method
write_bytes
(&self, mut writer: W)
bip_utracker/src/option.rs:55
↓ 4 callers
Method
write_bytes_slice
Write the given byte slice to the given writer.
bip_utracker/src/announce.rs:448
↓ 3 callers
Method
add_pending_block
Add a pending piece block to the current pending blocks.
bip_disk/src/disk/tasks/helpers/piece_checker.rs:176
↓ 3 callers
Method
address
(&self)
bip_dht/src/storage.rs:147
↓ 3 callers
Method
announce_response
Optionally return a reference to the underyling AnnounceResponse. If you know that the token associated with the response was retrived from an Announ
bip_utracker/src/client/mod.rs:73
↓ 3 callers
Function
any_info_hash
()
bip_handshake/src/handshake/handler/handshaker.rs:127
↓ 3 callers
Method
as_slice
(&self)
bip_metainfo/src/builder/worker.rs:248
↓ 3 callers
Function
attempt_rebootstrap
Attempt to rebootstrap or shutdown the dht if we have no nodes after rebootstrapping multiple time. Returns None if the DHT is shutting down, Some(tru
bip_dht/src/worker/handler.rs:285
↓ 3 callers
Method
bootstrap_next_bucket
Returns true if there are more buckets to bootstrap, false otherwise
bip_dht/src/worker/bootstrap.rs:166
↓ 3 callers
Function
broadcast_bootstrap_completed
Broadcast that the bootstrap has completed. IMPORTANT: Should call this instead of broadcast_dht_event()!
bip_dht/src/worker/handler.rs:247
↓ 3 callers
Method
build
Build the ShaHash from the `ShaHashBuilder`.
bip_util/src/sha/builder.rs:26
↓ 3 callers
Function
build_path
(parent_directory: Option<&Path>, file: &File)
bip_disk/src/disk/tasks/helpers/mod.rs:8
↓ 3 callers
Function
bytes_be_to_ipv4
Convert an array of 4 bytes big endian to an ipv4 address.
bip_util/src/convert.rs:80
↓ 3 callers
Function
bytes_be_to_ipv6
Convert an array of 16 bytes big endian to an ipv6 address.
bip_util/src/convert.rs:85
↓ 3 callers
Function
bytes_be_to_port
Convert an array of 2 bytes big endian to a port.
bip_util/src/convert.rs:112
↓ 3 callers
Function
calculate_piece_length
Calculate the minimum power of 2 piece length for the given max pieces size and total file size.
bip_metainfo/src/builder/mod.rs:427
↓ 3 callers
Method
clear_filters
(&self)
bip_handshake/src/filter/filters.rs:47
↓ 3 callers
Method
connect
Initiates a handshake with the given socket address.
bip_dht/examples/debug.rs:54
↓ 3 callers
Method
convert_int
Attempt to convert the given bencode value into an integer. Error key is used to generate an appropriate error message should the operation return an
bip_bencode/src/access/convert.rs:52
↓ 3 callers
Method
convert_str
Attempt to convert the given bencode value into a UTF-8 string. Error key is used to generate an appropriate error message should the operation retur
bip_bencode/src/access/convert.rs:74
↓ 3 callers
Function
default_route_v4
Get the default route ipv4 socket.
bip_util/src/net.rs:21
← previous
next →
101–200 of 1,430, ranked by callers