MCPcopy Create free account

hub / github.com/GGist/bip-rs / functions

Functions1,430 in github.com/GGist/bip-rs

↓ 2 callersMethodport
(&self)
bip_utracker/test/mod.rs:165
↓ 2 callersMethodprocess_message
(&mut self, message: IExtendedMessage, d_modules: &mut [Box<D>])
bip_select/src/extended/mod.rs:89
↓ 2 callersMethodread_piece
(&self, piece_buffer: &mut [u8], message: &BlockMetadata)
bip_disk/src/disk/tasks/helpers/piece_accessor.rs:23
↓ 2 callersMethodrecv_response
(&mut self, node: Node, trans_id: &Transaction
bip_dht/src/worker/lookup.rs:120
↓ 2 callersMethodrecv_timeout
(&mut self, trans_id: &TransactionID, table: &RoutingTab
bip_dht/src/worker/lookup.rs:243
↓ 2 callersMethodrefresh_check
(&mut self)
bip_dht/src/token.rs:107
↓ 2 callersMethodremove_expired_items
Prunes all expired items from the internal list.
bip_dht/src/storage.rs:106
↓ 2 callersMethodrequest_type
Actual type of request that this TrackerRequest represents.
bip_utracker/src/request.rs:107
↓ 2 callersMethodrun_with_file_regions
Run the given closure with the file, the file offset, and the read/write buffer stard (inclusive) and end (exclusive) indices. TODO: We do not detect
bip_disk/src/disk/tasks/helpers/piece_accessor.rs:43
↓ 2 callersMethodrun_with_lock
(&self, call: C)
bip_disk/src/disk/fs/cache/file_handle.rs:26
↓ 2 callersMethodsend_bootstrap_requests
(&mut self, nodes: I, target
bip_dht/src/worker/bootstrap.rs:226
↓ 2 callersFunctionsend_piece_diff
(checker_state: &mut PieceCheckerState, hash: InfoHash, blocking_sender: &mut Wait<Sender<ODiskMessage>>, igno
bip_disk/src/disk/tasks/mod.rs:165
↓ 2 callersMethodset_creation_date
Set or unset the creation date for the torrent.
bip_metainfo/src/builder/mod.rs:118
↓ 2 callersMethodset_main_tracker
Set or unset the main tracker that this torrent file points to.
bip_metainfo/src/builder/mod.rs:103
↓ 2 callersMethodset_private_flag
Set or unset the private flag for the torrent file.
bip_metainfo/src/builder/mod.rs:163
↓ 2 callersMethodset_read_only
Set the read only flag when communicating with other nodes. Indicates that remote nodes should not add us to their routing table. Used when we are be
bip_dht/src/builder.rs:155
↓ 2 callersFunctionsock_v4_to_bytes_be
Convert a v4 socket address to an array of 6 bytes big endian.
bip_util/src/convert.rs:52
↓ 2 callersFunctionsock_v6_to_bytes_be
Convert a v6 socket address to an array of 18 bytes big endian.
bip_util/src/convert.rs:66
↓ 2 callersFunctionsocket_v4_from_bytes_be
(bytes: &[u8])
bip_dht/src/message/compact_info.rs:152
↓ 2 callersMethodsource_ip
Source address to send the response to.
bip_utracker/src/announce.rs:109
↓ 2 callersMethodstart_bootstrap
(&mut self, out: &SyncSender<(Vec<u8>, SocketAddr)>,
bip_dht/src/worker/bootstrap.rs:63
↓ 2 callersMethodstart_endgame_round
(&mut self, table: &RoutingTable, out: &SyncSender
bip_dht/src/worker/lookup.rs:382
↓ 2 callersFunctionstart_hasher_workers
Starts a number of hasher workers which will generate the hash pieces for the files we send to it.
bip_metainfo/src/builder/worker.rs:29
↓ 2 callersMethodstart_mainline
Start a mainline DHT with the current configuration.
bip_dht/src/builder.rs:182
↓ 2 callersMethodstart_request_round
(&mut self, nodes: I, table: &Routin
bip_dht/src/worker/lookup.rs:328
↓ 2 callersMethodstart_send
(&mut self, item: Self::SinkItem)
bip_select/src/uber.rs:339
↓ 2 callersMethodstr
(&self)
bip_bencode/src/access/bencode.rs:62
↓ 2 callersMethodtheir_message
(&self)
bip_select/src/extended/mod.rs:65
↓ 2 callersMethodto_bytes
Retrieve the bencoded bytes for the `Metainfo` file.
bip_metainfo/src/metainfo.rs:73
↓ 2 callersMethodto_list
(&self)
bip_bencode/src/access/dict.rs:23
↓ 2 callersMethodtoken
(&self)
bip_dht/src/message/get_peers.rs:149
↓ 2 callersFunctiontravel_into_future
Allows us to time travel into the future.
bip_util/src/test.rs:9
↓ 2 callersMethodtry_submit_work
(&self)
bip_disk/src/disk/manager.rs:96
↓ 2 callersMethodunion
Create a union of the two extensions. This is useful for getting the extensions that both clients support.
bip_handshake/src/message/extensions.rs:70
↓ 2 callersMethodvalidate_info_hash
(&self, info_hash: &[u8])
bip_dht/src/message/request.rs:44
↓ 2 callersFunctionvalidate_token_from_addr_v4
Validate a token given an ipv4 address and one secret.
bip_dht/src/token.rs:191
↓ 2 callersFunctionvalidate_token_from_addr_v6
Validate a token given an ipv6 address and one secret.
bip_dht/src/token.rs:196
↓ 2 callersMethodvalidate_values
(&self, values: &'b [Bencode<'a>])
bip_dht/src/message/response.rs:46
↓ 2 callersMethodvalues
(&self)
bip_dht/src/message/compact_info.rs:98
↓ 2 callersMethodwith_config
Configuration that will be used to alter the internal behavior of handshaking. This will typically not need to be set unless you know what you are do
bip_handshake/src/handshake/handshaker.rs:98
↓ 2 callersMethodwrite_bytes
Write the `Protocol` out to the given writer.
bip_handshake/src/message/protocol.rs:24
↓ 2 callersMethodwrite_file
(&self, file: &mut Self::File, offset: u64, buffer: &[u8])
bip_disk/src/disk/fs/mod.rs:60
↓ 2 callersFunctionwrite_len_with_protocol_len
(protocol_len: u8)
bip_handshake/src/bittorrent/message.rs:55
↓ 1 callersMethodaccess_directory
(&self)
bip_metainfo/src/accessor.rs:33
↓ 1 callersMethodaccess_directory
Access the directory that all files should be relative to.
bip_metainfo/src/builder/worker.rs:255
↓ 1 callersMethodaccess_metadata
Access the metadata for all files including their length and path.
bip_metainfo/src/builder/worker.rs:260
↓ 1 callersMethodaccess_pieces
Access the sequential pieces that make up all of the files.
bip_metainfo/src/builder/worker.rs:267
↓ 1 callersMethodadd
(&mut self, info_hash: InfoHash, address: SocketAddr, curr_time: DateTime<UTC>)
bip_dht/src/storage.rs:30
↓ 1 callersMethodadd_bytes
Add bytes to the `ShaHashBuilder`.
bip_util/src/sha/builder.rs:19
↓ 1 callersMethodadd_item
Returns true if the item was added/it's existing expiration updated, false otherwise.
bip_dht/src/storage.rs:26
↓ 1 callersFunctionadd_metainfo_file
Adds the given metainfo file to the given sender, and waits for the added notification.
bip_disk/benches/mod.rs:55
↓ 1 callersMethodadd_node
Add nodes which will be distributed within our routing table.
bip_dht/src/builder.rs:135
↓ 1 callersMethodadd_peer
(&mut self, info: PeerInfo, ext_info: &ExtendedPeerInfo)
bip_select/src/discovery/ut_metadata.rs:124
↓ 1 callersMethodadd_peer
(&mut self, peer: PeerInfo)
bip_select/src/revelation/honest.rs:85
↓ 1 callersMethodadd_router
Add a router which will let us gather nodes if our routing table is ever empty. See DhtBuilder::with_router for difference between a router and a nod
bip_dht/src/builder.rs:144
↓ 1 callersMethodadd_torrent
(&mut self, metainfo: Metainfo)
bip_select/src/discovery/ut_metadata.rs:95
↓ 1 callersMethodadd_torrent
(&mut self, metainfo: &Metainfo)
bip_select/src/revelation/honest.rs:50
↓ 1 callersFunctionallocate_pieces
Validates and allocates the hash pieces on the heap.
bip_metainfo/src/metainfo.rs:314
↓ 1 callersMethodannounce
(&mut self, addr: SocketAddr, id: u64, req: &AnnounceRequest<'b>, result: R)
bip_utracker/test/mod.rs:68
↓ 1 callersFunctionany_peer_id
()
bip_handshake/src/handshake/handler/initiator.rs:48
↓ 1 callersMethodapply_tick
(&mut self, duration: Duration)
bip_select/src/discovery/ut_metadata.rs:182
↓ 1 callersMethodas_any
(&self)
bip_handshake/src/filter/filters.rs:107
↓ 1 callersMethodas_id
Access the raw id of the current event.
bip_utracker/src/announce.rs:371
↓ 1 callersMethodas_ref
(&self)
bip_dht/src/transaction.rs:235
↓ 1 callersFunctionbencode_from_builder
(builder: &ExtendedMessageBuilder, mut custom_entries: HashMap<String, BencodeMut<'static>>)
bip_peer/src/message/bits_ext/handshake.rs:105
↓ 1 callersMethodbitfield
(&self)
bip_peer/src/message/standard.rs:75
↓ 1 callersMethodblock_length
(&self)
bip_peer/src/message/standard.rs:159
↓ 1 callersMethodblocking_sender
(&self)
bip_disk/src/disk/tasks/context.rs:35
↓ 1 callersMethodbucket_node
Recursively tries to place the node into some bucket.
bip_dht/src/routing/table.rs:97
↓ 1 callersFunctionbucket_placement
Take the number of leading bits that are the same between our node and the remote node and calculate a bucket index for that node id.
bip_dht/src/routing/table.rs:166
↓ 1 callersMethodbytes
(&self)
bip_bencode/src/mutable/bencode_mut.rs:96
↓ 1 callersMethodbytes_ext
(&self)
bip_bencode/src/access/bencode.rs:89
↓ 1 callersMethodbytes_needed
(&mut self, bytes: &[u8])
bip_peer/src/codec.rs:80
↓ 1 callersFunctioncalculate_message_timeout_millis
Calculates the timeout for the request given the attempt count.
bip_utracker/src/client/dispatcher.rs:380
↓ 1 callersFunctioncalculate_total_buffers
Calculates the optimal number of piece buffers given the number of workers.
bip_metainfo/src/builder/buffer.rs:41
↓ 1 callersMethodcan_initiate
Returns true if the request SHOULD be made, false otherwise. It is invalid to not make the request after this returns true.
bip_utracker/src/client/mod.rs:217
↓ 1 callersFunctioncan_split_bucket
Returns true if the bucket can be split.
bip_dht/src/routing/table.rs:139
↓ 1 callersMethodcheck_key_sort
Whether or not an error should be thrown for out of order dictionary keys.
bip_bencode/src/reference/decode_opt.rs:28
↓ 1 callersMethodcheck_sink_unblock
(&mut self)
bip_select/src/discovery/ut_metadata.rs:438
↓ 1 callersMethodcheck_stream_unblock
(&mut self)
bip_select/src/extended/mod.rs:132
↓ 1 callersMethodcheck_stream_unblock
(&mut self)
bip_select/src/revelation/honest.rs:156
↓ 1 callersMethodcheckin
(&mut self, addr: IpAddr, token: Token)
bip_dht/src/token.rs:101
↓ 1 callersMethodcheckin
Checkin the given piece buffer to be re-used.
bip_metainfo/src/builder/buffer.rs:28
↓ 1 callersMethodclean_expired
Removes all entries that have expired.
bip_utracker/src/client/dispatcher.rs:424
↓ 1 callersFunctioncombine_user_path
Create a path from the user path and current directory.
bip_disk/src/disk/fs/native.rs:86
↓ 1 callersMethodcomment
Comment included within the metainfo file.
bip_metainfo/src/metainfo.rs:48
↓ 1 callersMethodcomplete_work
(&self)
bip_disk/src/disk/manager.rs:160
↓ 1 callersFunctionconfigured_handshake_timers
Configure a timer wheel and create a `HandshakeTimer`.
bip_handshake/src/handshake/handshaker.rs:170
↓ 1 callersMethodconnect
(&self, addr: &SocketAddr, handle: &Handle)
bip_handshake/src/transport.rs:41
↓ 1 callersMethodconnect
(&mut self, _: SocketAddr, result: R)
bip_utracker/test/mod.rs:58
↓ 1 callersMethodconnect_port
(&self)
bip_dht/src/message/announce_peer.rs:93
↓ 1 callersMethodconnect_timeout
Gets the handshake connection initiation timeout.
bip_handshake/src/handshake/config.rs:81
↓ 1 callersFunctionconnected_channel
(capacity: usize)
bip_peer/test/mod.rs:44
↓ 1 callersMethodcontinue_refresh
(&mut self, table: &RoutingTable, out: &SyncSend
bip_dht/src/worker/refresh.rs:37
↓ 1 callersFunctionconvert_announce_list
Converts list of lists to vec of vecs
bip_metainfo/src/parse.rs:57
↓ 1 callersMethodconvert_bytes
Attempt to convert the given bencode value into bytes. Error key is used to generate an appropriate error message should the operation return an erro
bip_bencode/src/access/convert.rs:63
↓ 1 callersMethodconvert_bytes_ext
See BConvert::convert_bytes.
bip_bencode/src/access/convert.rs:10
↓ 1 callersMethodconvert_list
Attempty to convert the given bencode value into a list. Error key is used to generate an appropriate error message should the operation return an er
bip_bencode/src/access/convert.rs:85
↓ 1 callersMethodconvert_str_ext
See BConvert::convert_str.
bip_bencode/src/access/convert.rs:19
↓ 1 callersFunctioncreate_dht_handler
Spawns a DHT handler that maintains our routing table and executes our actions on the DHT.
bip_dht/src/worker/handler.rs:46
← previousnext →301–400 of 1,430, ranked by callers