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
↓ 1 callers
Function
create_dispatcher
Create a new background dispatcher to execute request and send responses back. Assumes msg_capacity is less than usize::max_value().
bip_utracker/src/client/dispatcher.rs:47
↓ 1 callers
Function
create_dispatcher
Create a new background dispatcher to service requests.
bip_utracker/src/server/dispatcher.rs:25
↓ 1 callers
Function
create_incoming_messenger
(socket: UdpSocket, send: Sender<OneshotTask>)
bip_dht/src/worker/messenger.rs:43
↓ 1 callers
Function
create_new_file
Create a new file with read and write options. Intermediate directories will be created if they do not exist.
bip_disk/src/disk/fs/native.rs:71
↓ 1 callers
Function
create_outgoing_messenger
(socket: UdpSocket)
bip_dht/src/worker/messenger.rs:11
↓ 1 callers
Function
create_torrent
Create a torrent from the given source path.
bip_metainfo/examples/create_torrent.rs:41
↓ 1 callers
Method
created_by
Person or group that created the metainfo file.
bip_metainfo/src/metainfo.rs:53
↓ 1 callers
Method
current_timeout
Yields the current timeout value to use or None if the request should time out completely.
bip_utracker/src/client/dispatcher.rs:351
↓ 1 callers
Method
data
(&self)
bip_peer/src/message/prot_ext/ut_metadata.rs:164
↓ 1 callers
Function
decode_dict
(bytes: &'a [u8], pos: usize, opts: BDecodeOpt, depth: usize)
bip_bencode/src/reference/decode.rs:111
↓ 1 callers
Function
decode_list
(bytes: &'a [u8], pos: usize, opts: BDecodeOpt, depth: usize)
bip_bencode/src/reference/decode.rs:92
↓ 1 callers
Function
determine_piece_length
Calculate the final piece length given the total file size and piece length strategy. Lower piece length will result in a bigger file but better tran
bip_metainfo/src/builder/mod.rs:405
↓ 1 callers
Method
done_buffer_size
Gets the done buffer size.
bip_handshake/src/handshake/config.rs:71
↓ 1 callers
Method
download_metainfo
(&mut self, hash: InfoHash)
bip_select/src/discovery/ut_metadata.rs:218
↓ 1 callers
Method
enabled
(&self, metadata: &LogMetadata)
bip_dht/examples/debug.rs:20
↓ 1 callers
Method
encode
(&self)
bip_dht/src/routing/node.rs:115
↓ 1 callers
Function
encode_dict
(dict: &BDictAccess<K, V>, bytes: &mut Vec<u8>)
bip_bencode/src/mutable/encode.rs:44
↓ 1 callers
Function
encode_int
(val: i64, bytes: &mut Vec<u8>)
bip_bencode/src/mutable/encode.rs:17
↓ 1 callers
Function
encode_list
(list: &BListAccess<T>, bytes: &mut Vec<u8>)
bip_bencode/src/mutable/encode.rs:33
↓ 1 callers
Method
enforce_full_decode
Whether or not we enforce that the decoded bencode must make up all of the input bytes or not. It may be useful to disable this if for example, the i
bip_bencode/src/reference/decode_opt.rs:38
↓ 1 callers
Method
event
Event reported by the client.
bip_utracker/src/announce.rs:310
↓ 1 callers
Function
execute_add_torrent
(file: Metainfo, context: &DiskManagerContext<F>, blocking_sender: &mut Wait<Sender<ODiskMessage>>)
bip_disk/src/disk/tasks/mod.rs:67
↓ 1 callers
Function
execute_load_block
(block: &mut BlockMut, context: &DiskManagerContext<F>)
bip_disk/src/disk/tasks/mod.rs:113
↓ 1 callers
Function
execute_process_block
(block: &mut Block, context: &DiskManagerContext<F>, blocking_sender: &mut Wait<Sender<ODiskMessage>>)
bip_disk/src/disk/tasks/mod.rs:133
↓ 1 callers
Function
execute_remove_torrent
(hash: InfoHash, context: &DiskManagerContext<F>)
bip_disk/src/disk/tasks/mod.rs:82
↓ 1 callers
Function
execute_sync_torrent
(hash: InfoHash, context: &DiskManagerContext<F>)
bip_disk/src/disk/tasks/mod.rs:91
↓ 1 callers
Method
extend
Extend the given extended message builder for the given peer.
bip_select/src/extended/mod.rs:29
↓ 1 callers
Method
extract_error_args
(&self, args: &[Bencode<'a>])
bip_dht/src/message/error.rs:60
↓ 1 callers
Method
file_size
(&self, file: &Self::File)
bip_disk/src/disk/fs/mod.rs:52
↓ 1 callers
Method
fill_checker_state
Fill the PieceCheckerState with all piece messages for each file in our info dictionary. This is done once when a torrent file is added to see if we
bip_disk/src/disk/tasks/helpers/piece_checker.rs:79
↓ 1 callers
Function
flip_id_bit_at_index
Panics if index is out of bounds.
bip_dht/src/worker/refresh.rs:91
↓ 1 callers
Function
flip_id_bit_at_index
Panics if index is out of bounds. TODO: Move into bip_util crate
bip_dht/src/worker/bootstrap.rs:295
↓ 1 callers
Function
flip_id_bit_at_index
TODO: Move into bip_util crate
bip_dht/src/routing/table.rs:461
↓ 1 callers
Method
forward_announce
Forward an announce request on to the appropriate handler method.
bip_utracker/src/server/dispatcher.rs:103
↓ 1 callers
Function
forward_compatible_find_node
Mainline dht extension for forward compatibility. Treat unsupported messages with either a target id key or info hash key as find node messages.
bip_dht/src/message/request.rs:130
↓ 1 callers
Method
forward_connect
Forward a connect request on to the appropriate handler method.
bip_utracker/src/server/dispatcher.rs:87
↓ 1 callers
Method
forward_scrape
Forward a scrape request on to the appropriate handler method.
bip_utracker/src/server/dispatcher.rs:121
↓ 1 callers
Function
generate_active_request
(message: UtMetadataRequestMessage, peer: PeerInfo)
bip_select/src/discovery/ut_metadata.rs:448
↓ 1 callers
Function
generate_mids
(next_alloc, mids)
bip_dht/src/transaction.rs:174
↓ 1 callers
Function
generate_requests
Generate a mapping of piece index to list of block requests for that piece, given a block size. Note, most clients will drop connections for peers re
examples/simple_torrent/src/main.rs:430
↓ 1 callers
Function
generate_single_file_torrent
Generates a torrent with a single file of the given length. Returns both the torrent file, as well as the (random) data of the file.
bip_disk/benches/mod.rs:35
↓ 1 callers
Function
generate_token_from_addr
Generate a token from an ip address and a secret.
bip_dht/src/token.rs:139
↓ 1 callers
Method
get
Get an un expired connection id for the given addr.
bip_utracker/src/client/dispatcher.rs:398
↓ 1 callers
Function
good_node_filter
Converts the given iterator into a filter iterator to return only good nodes.
bip_dht/src/routing/table.rs:382
↓ 1 callers
Function
handle_check_bootstrap_timeout
(handler: &mut DhtHandler<H>, event_loop: &mut EventLoop<DhtHandler<H>>,
bip_dht/src/worker/handler.rs:846
↓ 1 callers
Function
handle_check_lookup_endgame
(handler: &mut DhtHandler<H>, event_loop: &mut EventLoop<DhtHandler<H>>,
bip_dht/src/worker/handler.rs:961
↓ 1 callers
Function
handle_check_lookup_timeout
(handler: &mut DhtHandler<H>, event_loop: &mut EventLoop<DhtHandler<H>>,
bip_dht/src/worker/handler.rs:908
↓ 1 callers
Function
handle_incoming
(handler: &mut DhtHandler<H>, event_loop: &mut EventLoop<DhtHandler<H>>,
bip_dht/src/worker/handler.rs:330
↓ 1 callers
Function
handle_register_sender
(handler: &mut DhtHandler<H>, sender: mpsc::Sender<DhtEvent>)
bip_dht/src/worker/handler.rs:710
↓ 1 callers
Function
handle_shutdown
(handler: &mut DhtHandler<H>, event_loop: &mut EventLoop<DhtHandler<H>>,
bip_dht/src/worker/handler.rs:797
↓ 1 callers
Function
handle_start_bootstrap
(handler: &mut DhtHandler<H>, event_loop: &mut EventLoop<DhtHandler<H>>,
bip_dht/src/worker/handler.rs:714
↓ 1 callers
Method
handshake_timeout
Gets the handshake timeout.
bip_handshake/src/handshake/config.rs:76
↓ 1 callers
Method
hash
Hash that the peer is interested in.
bip_handshake/src/message/complete.rs:35
↓ 1 callers
Function
hex_to_bytes
(hex: &str)
bip_handshake/examples/handshake_torrent.rs:53
↓ 1 callers
Method
id
Retrieve the message id corresponding to the given `ExtendedType`.
bip_peer/src/message/bits_ext/handshake.rs:189
↓ 1 callers
Method
incoming
(&mut self, mut provider: Provider<'a, Self>, message: &[u8],
bip_utracker/src/client/dispatcher.rs:292
↓ 1 callers
Method
index
Error is for the element at the given index.
bip_util/src/error.rs:48
↓ 1 callers
Method
info_hash
Hash to uniquely identify this torrent.
bip_metainfo/src/metainfo.rs:159
↓ 1 callers
Method
info_hash
InfoHash of the current request.
bip_utracker/src/announce.rs:94
↓ 1 callers
Method
info_type
(&self)
bip_dht/src/message/get_peers.rs:153
↓ 1 callers
Method
initialize_pending
(&mut self)
bip_select/src/discovery/ut_metadata.rs:362
↓ 1 callers
Function
insert_closest_nodes
Inserts the node into the slice if a slot in the slice is unused or a node in the slice is further from the target id than the node being inserted.
bip_dht/src/worker/lookup.rs:475
↓ 1 callers
Method
insert_contact
Returns None if the contact could not be inserted, else, returns Some(true) if the contact was already in the table (and was replaced by the new entry
bip_dht/src/storage.rs:76
↓ 1 callers
Method
insert_piece
(&mut self, hash: InfoHash, index: u64)
bip_select/src/revelation/honest.rs:129
↓ 1 callers
Function
insert_reversed_bits
Inserts the slice into the `BytesMut` but reverses the bits in each byte.
bip_select/src/revelation/honest.rs:164
↓ 1 callers
Method
insert_torrent
(&self, file: Metainfo, state: PieceCheckerState)
bip_disk/src/disk/tasks/context.rs:43
↓ 1 callers
Function
intervals_passed
Since we are lazily generating tokens, more than one interval could have passed since we last generated a token in which case our last secret AND curr
bip_dht/src/token.rs:129
↓ 1 callers
Method
ipv4_addr
(&self)
bip_dht/src/router.rs:42
↓ 1 callers
Function
is_compliant_addr
Compares the given masked ip (v4 or v6) against the given node id to see if the node if is valid. Also, LOL, the spec is so confusing when it comes t
bip_dht/src/security.rs:76
↓ 1 callers
Function
is_compliant_id
Compares the result from the crc32c function against the first 21 bits of the node id. We dont have to check the last byte of the node id since we us
bip_dht/src/security.rs:109
↓ 1 callers
Method
is_expired
(&self, now: DateTime<UTC>)
bip_dht/src/storage.rs:176
↓ 1 callers
Function
is_good_node
Shakes fist at iterator making me take a double reference (could avoid it by mapping, but oh well)
bip_dht/src/routing/table.rs:387
↓ 1 callers
Method
is_ipv6
Whether or not the source is an IPv6 address.
bip_utracker/src/announce.rs:433
↓ 1 callers
Method
is_keep_alive
(&self)
bip_peer/src/message/mod.rs:95
↓ 1 callers
Function
is_multi_file_torrent
Returns whether or not this is a multi file torrent.
bip_metainfo/src/metainfo.rs:308
↓ 1 callers
Method
is_router
(&self, addr: &SocketAddr)
bip_dht/src/worker/bootstrap.rs:103
↓ 1 callers
Function
is_security_compliant_ipv4_exempt
Checks to see if the given ipv4 address is exempt from a security check.
bip_dht/src/security.rs:63
↓ 1 callers
Method
is_whole
Whether or not the given piece buffer is full.
bip_metainfo/src/builder/buffer.rs:73
↓ 1 callers
Method
kind
(&'b self)
bip_bencode/src/mutable/bencode_mut.rs:68
↓ 1 callers
Method
length
Length of the file in bytes.
bip_metainfo/src/metainfo.rs:382
↓ 1 callers
Method
listen
(&self, addr: &SocketAddr, handle: &Handle)
bip_handshake/src/transport.rs:45
↓ 1 callers
Method
main_tracker
Announce url for the main tracker of the metainfo file.
bip_metainfo/src/metainfo.rs:38
↓ 1 callers
Function
map_pieces_list
Map the pieces list into a list of bytes (byte string).
bip_metainfo/src/builder/mod.rs:443
↓ 1 callers
Method
max_recursion
Maximum limit allowed when decoding bencode.
bip_bencode/src/reference/decode_opt.rs:23
↓ 1 callers
Method
merge_pieces
Merges all pending piece messages into a single messages if possible.
bip_disk/src/disk/tasks/helpers/piece_checker.rs:222
↓ 1 callers
Method
message_size
(&mut self, _message: &Self::ProtocolMessage)
bip_peer/src/codec.rs:93
↓ 1 callers
Method
message_size
(&self, custom_prot: &mut P)
bip_peer/src/message/prot_ext/mod.rs:59
↓ 1 callers
Method
metadata
Send the given Metadata back to the client.
bip_dht/examples/debug.rs:65
↓ 1 callers
Function
next_bucket_index
Computes the next bucket index that should be visited given the number of buckets, the starting index and the current index. Returns None if all of t
bip_dht/src/routing/table.rs:397
↓ 1 callers
Method
nodes
(&self)
bip_dht/src/message/find_node.rs:116
↓ 1 callers
Method
on_addr
(&self, opt_addr: Option<&SocketAddr>)
bip_handshake/src/filter/filters.rs:111
↓ 1 callers
Method
on_ext
Make a filter decision based on the `Extensions`.
bip_handshake/src/filter/mod.rs:67
↓ 1 callers
Method
on_hash
Make a filter decision based on the `InfoHash`.
bip_handshake/src/filter/mod.rs:70
↓ 1 callers
Method
on_pid
(&self, opt_pid: Option<&PeerId>)
bip_handshake/src/filter/filters.rs:165
↓ 1 callers
Method
on_prot
(&self, opt_prot: Option<&Protocol>)
bip_handshake/src/filter/filters.rs:138
↓ 1 callers
Method
our_message
(&self)
bip_select/src/extended/mod.rs:61
↓ 1 callers
Method
parse_bytes
(&mut self, _bytes: Bytes)
bip_peer/src/codec.rs:84
↓ 1 callers
Function
parse_client_id
(root: &BDictAccess<K, V>)
bip_peer/src/message/bencode.rs:50
↓ 1 callers
Function
parse_client_ipv4_addr
(root: &BDictAccess<K, V>)
bip_peer/src/message/bencode.rs:98
↓ 1 callers
Function
parse_client_ipv6_addr
(root: &BDictAccess<K, V>)
bip_peer/src/message/bencode.rs:85
← previous
next →
401–500 of 1,430, ranked by callers