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
parse_client_max_requests
(root: &BDictAccess<K, V>)
bip_peer/src/message/bencode.rs:111
↓ 1 callers
Function
parse_client_tcp_port
(root: &BDictAccess<K, V>)
bip_peer/src/message/bencode.rs:57
↓ 1 callers
Function
parse_desired
(bytes: &[u8])
bip_utracker/src/announce.rs:508
↓ 1 callers
Function
parse_encoding
Parses the encoding from the root dictionary.
bip_metainfo/src/parse.rs:95
↓ 1 callers
Function
parse_event
(bytes: &[u8])
bip_utracker/src/announce.rs:381
↓ 1 callers
Function
parse_extension
(mut bytes: Bytes)
bip_peer/src/message/bits_ext/mod.rs:62
↓ 1 callers
Function
parse_extension_bits
Parse the given bytes for extension bits.
bip_handshake/src/message/extensions.rs:93
↓ 1 callers
Function
parse_extensions
(mut bytes: Bytes, extended: &ExtendedMessage, custom_prot: &mut P)
bip_peer/src/message/prot_ext/mod.rs:67
↓ 1 callers
Function
parse_file_dict
Parses the file dictionary from the file bencode.
bip_metainfo/src/parse.rs:141
↓ 1 callers
Function
parse_files_list
Parses the files list from the info dictionary.
bip_metainfo/src/parse.rs:133
↓ 1 callers
Function
parse_id_map
(root: &BDictAccess<K, V>)
bip_peer/src/message/bencode.rs:34
↓ 1 callers
Function
parse_info_bencode
Parses the info dictionary from the root dictionary.
bip_metainfo/src/parse.rs:101
↓ 1 callers
Function
parse_info_bytes
Parses the given info dictionary bytes and builds a Metainfo from them.
bip_metainfo/src/metainfo.rs:253
↓ 1 callers
Function
parse_message
Since these messages may come over a stream oriented protocol, if a message is incomplete the number of bytes needed will be returned. However, that n
bip_peer/src/message/mod.rs:196
↓ 1 callers
Function
parse_message_type
(root: &BDictAccess<K, V>)
bip_peer/src/message/bencode.rs:140
↓ 1 callers
Function
parse_meta_bytes
Parses the given metainfo bytes and builds a Metainfo from them.
bip_metainfo/src/metainfo.rs:103
↓ 1 callers
Function
parse_metadata_size
(root: &BDictAccess<K, V>)
bip_peer/src/message/bencode.rs:117
↓ 1 callers
Function
parse_our_ip
(root: &BDictAccess<K, V>)
bip_peer/src/message/bencode.rs:70
↓ 1 callers
Function
parse_path_list
Parses the path list from the file dictionary.
bip_metainfo/src/parse.rs:159
↓ 1 callers
Function
parse_path_str
Parses the path string from the path bencode.
bip_metainfo/src/parse.rs:165
↓ 1 callers
Function
parse_peers_v4
(bytes: &'a [u8])
bip_utracker/src/contact.rs:151
↓ 1 callers
Function
parse_peers_v6
(bytes: &'a [u8])
bip_utracker/src/contact.rs:251
↓ 1 callers
Function
parse_piece_index
(root: &BDictAccess<K, V>)
bip_peer/src/message/bencode.rs:145
↓ 1 callers
Function
parse_piece_length
Parses the piece length from the info dictionary.
bip_metainfo/src/parse.rs:109
↓ 1 callers
Function
parse_pieces
Parses the pieces from the info dictionary.
bip_metainfo/src/parse.rs:115
↓ 1 callers
Function
parse_port
(bytes: &[u8])
bip_peer/src/message/bits_ext/port.rs:39
↓ 1 callers
Function
parse_preference_v4
(bytes: &[u8])
bip_utracker/src/announce.rs:455
↓ 1 callers
Function
parse_preference_v6
(bytes: &[u8])
bip_utracker/src/announce.rs:466
↓ 1 callers
Function
parse_private
Parses the private flag from the info dictionary.
bip_metainfo/src/parse.rs:121
↓ 1 callers
Function
parse_protocol
(bytes: &[u8])
bip_handshake/src/message/protocol.rs:46
↓ 1 callers
Function
parse_real_protocol
(bytes: &[u8])
bip_handshake/src/message/protocol.rs:51
↓ 1 callers
Function
parse_remote_handshake
(bytes: &[u8])
bip_handshake/src/bittorrent/message.rs:59
↓ 1 callers
Function
parse_request
(bytes: &'a [u8])
bip_utracker/src/scrape.rs:106
↓ 1 callers
Function
parse_request
(bytes: &'a [u8])
bip_utracker/src/request.rs:121
↓ 1 callers
Function
parse_response
(bytes: &'a [u8])
bip_utracker/src/scrape.rs:173
↓ 1 callers
Function
parse_response
(bytes: &'a [u8])
bip_utracker/src/response.rs:114
↓ 1 callers
Function
parse_state
(bytes: &[u8])
bip_utracker/src/announce.rs:330
↓ 1 callers
Function
parse_stats
(bytes: &[u8])
bip_utracker/src/scrape.rs:51
↓ 1 callers
Function
parse_total_size
(root: &BDictAccess<K, V>)
bip_peer/src/message/bencode.rs:150
↓ 1 callers
Function
parts_from_compact_info
Panics if the size of compact_info is less than BYTES_PER_COMPACT_NODE_INFO.
bip_dht/src/message/compact_info.rs:140
↓ 1 callers
Function
pending_info_from_metadata_size
(metadata_size: i64)
bip_select/src/discovery/ut_metadata.rs:456
↓ 1 callers
Function
pick_initial_nodes
Picks a number of nodes from the sorted distance iterator to ping on the first round.
bip_dht/src/worker/lookup.rs:435
↓ 1 callers
Function
pick_iterate_nodes
Picks a number of nodes from the unsorted distance iterator to ping on iterative rounds.
bip_dht/src/worker/lookup.rs:454
↓ 1 callers
Function
piece_is_complete
True if the piece is ready to be hashed and checked (full) as good or not.
bip_disk/src/disk/tasks/helpers/piece_checker.rs:251
↓ 1 callers
Method
poll_complete
(&mut self)
bip_select/src/uber.rs:345
↓ 1 callers
Method
poll_sink_state
(&mut self)
bip_select/src/uber.rs:279
↓ 1 callers
Method
poll_stream_state
(&mut self)
bip_select/src/uber.rs:300
↓ 1 callers
Method
port
(&self)
bip_handshake/src/handshake/handshaker.rs:130
↓ 1 callers
Method
port
(&self)
examples/get_metadata/src/main.rs:70
↓ 1 callers
Function
precompute_assorted_nodes
Optionally returns the precomputed bucket positions for all assorted nodes.
bip_dht/src/routing/table.rs:344
↓ 1 callers
Function
print_metainfo_overview
Print general information about the torrent.
bip_metainfo/examples/create_torrent.rs:64
↓ 1 callers
Function
process_blocks
Pushes the given bytes as piece blocks to the given sender, and blocks until all notifications of the blocks being processed have been received (does
bip_disk/benches/mod.rs:70
↓ 1 callers
Method
process_request
Forward the request on to the appropriate handler method.
bip_utracker/src/server/dispatcher.rs:64
↓ 1 callers
Method
protocol
Protocol that this peer is operating over.
bip_handshake/src/message/complete.rs:25
↓ 1 callers
Method
put
Put an un expired connection id into cache for the given addr.
bip_utracker/src/client/dispatcher.rs:417
↓ 1 callers
Function
random_node_id
Generates a random NodeId. TODO: Shouldnt use this in the future to get an id for the routing table, generate one from the security module to be comp
bip_dht/src/routing/table.rs:147
↓ 1 callers
Method
read_file
(&self, file: &mut Self::File, offset: u64, buffer: &mut [u8])
bip_disk/src/disk/fs/mod.rs:56
↓ 1 callers
Method
read_filters
(&self, block: B)
bip_handshake/src/filter/filters.rs:53
↓ 1 callers
Method
received_message
(&mut self, _message: &M)
bip_peer/src/protocol/unit.rs:39
↓ 1 callers
Function
recently_requested
Second scenario where a node has ever responded to one of our requests and is good if it has sent us a request recently. Returns the final status of
bip_dht/src/routing/node.rs:230
↓ 1 callers
Function
recently_responded
First scenario where a node is good is if it has responded to one of our requests recently. Returns the status of the node where a Questionable statu
bip_dht/src/routing/node.rs:209
↓ 1 callers
Method
recv_data
(&mut self, info: PeerInfo, data: UtMetadataDataMessage)
bip_select/src/discovery/ut_metadata.rs:241
↓ 1 callers
Method
recv_finished
(&mut self, handshake_port: u16, table: &RoutingTable,
bip_dht/src/worker/lookup.rs:269
↓ 1 callers
Method
recv_reject
(&mut self, _info: PeerInfo, _reject: UtMetadataRejectMessage)
bip_select/src/discovery/ut_metadata.rs:264
↓ 1 callers
Method
recv_request
(&mut self, info: PeerInfo, request: UtMetadataRequestMessage)
bip_select/src/discovery/ut_metadata.rs:226
↓ 1 callers
Method
recv_response
Process a response received from some tracker and match it up against our sent requests.
bip_utracker/src/client/dispatcher.rs:154
↓ 1 callers
Method
refill_stored_ids
Refills our stored ids list with new ids and resets our current index.
bip_util/src/trans/locally_shuffled.rs:40
↓ 1 callers
Method
remote_response
Record that the node sent us a response.
bip_dht/src/routing/node.rs:101
↓ 1 callers
Method
remove_peer
(&mut self, info: PeerInfo)
bip_select/src/discovery/ut_metadata.rs:166
↓ 1 callers
Method
remove_peer
(&mut self, peer: PeerInfo)
bip_select/src/revelation/honest.rs:116
↓ 1 callers
Method
remove_torrent
(&self, hash: InfoHash)
bip_disk/src/disk/tasks/context.rs:76
↓ 1 callers
Method
remove_torrent
(&mut self, metainfo: Metainfo)
bip_select/src/discovery/ut_metadata.rs:111
↓ 1 callers
Method
remove_torrent
(&mut self, metainfo: &Metainfo)
bip_select/src/revelation/honest.rs:75
↓ 1 callers
Method
retrieve_completed_download
(&mut self)
bip_select/src/discovery/ut_metadata.rs:271
↓ 1 callers
Method
retrieve_piece_request
(&mut self)
bip_select/src/discovery/ut_metadata.rs:299
↓ 1 callers
Method
retrieve_piece_response
(&mut self)
bip_select/src/discovery/ut_metadata.rs:334
↓ 1 callers
Function
run_peer
(peer: P, info: PeerInfo, o_send: Sender<OPeerManagerMessage<P::Item>>, timer: Timer, build
bip_peer/src/manager/task.rs:40
↓ 1 callers
Method
run_with_diff
Run the given closures against NewGood and NewBad messages. Each of the messages will then either be dropped (NewBad) or converted to OldGood (NewGood
bip_disk/src/disk/tasks/helpers/piece_checker.rs:182
↓ 1 callers
Method
run_with_whole_pieces
Pass any pieces that have not been identified as OldGood into the callback which determines if the piece is good or bad so it can be marked as NewGood
bip_disk/src/disk/tasks/helpers/piece_checker.rs:193
↓ 1 callers
Method
scrape
(&mut self, _: SocketAddr, id: u64, req: &ScrapeRequest<'b>, result: R)
bip_utracker/test/mod.rs:127
↓ 1 callers
Method
scrape_response
Optionally return a reference to the underyling ScrapeResponse. If you know that the token associated with the response was retrived from a ScrapeReq
bip_utracker/src/client/mod.rs:85
↓ 1 callers
Function
send_bytes
(socket: &UdpSocket, bytes: &[u8], addr: SocketAddr)
bip_dht/src/worker/messenger.rs:25
↓ 1 callers
Function
send_message
(send: &Sender<OneshotTask>, bytes: Vec<u8>, addr: SocketAddr)
bip_dht/src/worker/messenger.rs:63
↓ 1 callers
Method
send_request
Process a request to be sent to the given address and associated with the given token.
bip_utracker/src/client/dispatcher.rs:133
↓ 1 callers
Method
sent_message
(&mut self, _message: &M)
bip_peer/src/protocol/unit.rs:41
↓ 1 callers
Method
set_source_addr
Provide the DHT with the source address. If this is not supplied we will use the OS default route.
bip_dht/src/builder.rs:175
↓ 1 callers
Method
set_timeout_id
Sets a new timeout id.
bip_utracker/src/client/dispatcher.rs:369
↓ 1 callers
Method
set_trackers
Set announce-list content
bip_metainfo/src/builder/mod.rs:68
↓ 1 callers
Method
sink_buffer_capacity
Retrieve the sink buffer capacity.
bip_peer/src/manager/builder.rs:74
↓ 1 callers
Method
sink_buffer_capacity
Retrieve the sink buffer capacity.
bip_disk/src/disk/builder.rs:47
↓ 1 callers
Method
sink_buffer_size
Gets the sink buffer size.
bip_handshake/src/handshake/config.rs:61
↓ 1 callers
Method
split_bucket
Tries to split the bucket at the specified index. Returns false if the split cannot be performed.
bip_dht/src/routing/table.rs:113
↓ 1 callers
Function
start_hash_master
Start a master hasher which will take care of chunking sequential/overlapping pieces from the data given to it and giving updates to the hasher worker
bip_metainfo/src/builder/worker.rs:77
↓ 1 callers
Function
start_hash_worker
Starts a hasher worker which will hash all of the buffers it receives.
bip_metainfo/src/builder/worker.rs:177
↓ 1 callers
Function
start_mainline_dht
Spawns the necessary workers that make up our local DHT node and connects them via channels so that they can send and receive DHT messages.
bip_dht/src/worker/mod.rs:71
↓ 1 callers
Function
start_progress_updater
(recv: Receiver<usize>, num_pieces: u64, mut progress: C)
bip_metainfo/src/builder/worker.rs:164
↓ 1 callers
Method
start_send
(&mut self, item: Self::SinkItem)
bip_peer/test/mod.rs:26
↓ 1 callers
Method
start_send
(&mut self, item: IDiskMessage)
bip_disk/src/disk/manager.rs:53
↓ 1 callers
Method
start_sink_state
Run the start_send logic for the current module for the given message.
bip_select/src/uber.rs:227
↓ 1 callers
Method
state
State reported by the client in the given request.
bip_utracker/src/announce.rs:104
← previous
next →
501–600 of 1,430, ranked by callers