MCPcopy Create free account

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

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

↓ 1 callersFunctioncreate_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 callersFunctioncreate_dispatcher
Create a new background dispatcher to service requests.
bip_utracker/src/server/dispatcher.rs:25
↓ 1 callersFunctioncreate_incoming_messenger
(socket: UdpSocket, send: Sender<OneshotTask>)
bip_dht/src/worker/messenger.rs:43
↓ 1 callersFunctioncreate_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 callersFunctioncreate_outgoing_messenger
(socket: UdpSocket)
bip_dht/src/worker/messenger.rs:11
↓ 1 callersFunctioncreate_torrent
Create a torrent from the given source path.
bip_metainfo/examples/create_torrent.rs:41
↓ 1 callersMethodcreated_by
Person or group that created the metainfo file.
bip_metainfo/src/metainfo.rs:53
↓ 1 callersMethodcurrent_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 callersMethoddata
(&self)
bip_peer/src/message/prot_ext/ut_metadata.rs:164
↓ 1 callersFunctiondecode_dict
(bytes: &'a [u8], pos: usize, opts: BDecodeOpt, depth: usize)
bip_bencode/src/reference/decode.rs:111
↓ 1 callersFunctiondecode_list
(bytes: &'a [u8], pos: usize, opts: BDecodeOpt, depth: usize)
bip_bencode/src/reference/decode.rs:92
↓ 1 callersFunctiondetermine_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 callersMethoddone_buffer_size
Gets the done buffer size.
bip_handshake/src/handshake/config.rs:71
↓ 1 callersMethoddownload_metainfo
(&mut self, hash: InfoHash)
bip_select/src/discovery/ut_metadata.rs:218
↓ 1 callersMethodenabled
(&self, metadata: &LogMetadata)
bip_dht/examples/debug.rs:20
↓ 1 callersMethodencode
(&self)
bip_dht/src/routing/node.rs:115
↓ 1 callersFunctionencode_dict
(dict: &BDictAccess<K, V>, bytes: &mut Vec<u8>)
bip_bencode/src/mutable/encode.rs:44
↓ 1 callersFunctionencode_int
(val: i64, bytes: &mut Vec<u8>)
bip_bencode/src/mutable/encode.rs:17
↓ 1 callersFunctionencode_list
(list: &BListAccess<T>, bytes: &mut Vec<u8>)
bip_bencode/src/mutable/encode.rs:33
↓ 1 callersMethodenforce_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 callersMethodevent
Event reported by the client.
bip_utracker/src/announce.rs:310
↓ 1 callersFunctionexecute_add_torrent
(file: Metainfo, context: &DiskManagerContext<F>, blocking_sender: &mut Wait<Sender<ODiskMessage>>)
bip_disk/src/disk/tasks/mod.rs:67
↓ 1 callersFunctionexecute_load_block
(block: &mut BlockMut, context: &DiskManagerContext<F>)
bip_disk/src/disk/tasks/mod.rs:113
↓ 1 callersFunctionexecute_process_block
(block: &mut Block, context: &DiskManagerContext<F>, blocking_sender: &mut Wait<Sender<ODiskMessage>>)
bip_disk/src/disk/tasks/mod.rs:133
↓ 1 callersFunctionexecute_remove_torrent
(hash: InfoHash, context: &DiskManagerContext<F>)
bip_disk/src/disk/tasks/mod.rs:82
↓ 1 callersFunctionexecute_sync_torrent
(hash: InfoHash, context: &DiskManagerContext<F>)
bip_disk/src/disk/tasks/mod.rs:91
↓ 1 callersMethodextend
Extend the given extended message builder for the given peer.
bip_select/src/extended/mod.rs:29
↓ 1 callersMethodextract_error_args
(&self, args: &[Bencode<'a>])
bip_dht/src/message/error.rs:60
↓ 1 callersMethodfile_size
(&self, file: &Self::File)
bip_disk/src/disk/fs/mod.rs:52
↓ 1 callersMethodfill_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 callersFunctionflip_id_bit_at_index
Panics if index is out of bounds.
bip_dht/src/worker/refresh.rs:91
↓ 1 callersFunctionflip_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 callersFunctionflip_id_bit_at_index
TODO: Move into bip_util crate
bip_dht/src/routing/table.rs:461
↓ 1 callersMethodforward_announce
Forward an announce request on to the appropriate handler method.
bip_utracker/src/server/dispatcher.rs:103
↓ 1 callersFunctionforward_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 callersMethodforward_connect
Forward a connect request on to the appropriate handler method.
bip_utracker/src/server/dispatcher.rs:87
↓ 1 callersMethodforward_scrape
Forward a scrape request on to the appropriate handler method.
bip_utracker/src/server/dispatcher.rs:121
↓ 1 callersFunctiongenerate_active_request
(message: UtMetadataRequestMessage, peer: PeerInfo)
bip_select/src/discovery/ut_metadata.rs:448
↓ 1 callersFunctiongenerate_mids
(next_alloc, mids)
bip_dht/src/transaction.rs:174
↓ 1 callersFunctiongenerate_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 callersFunctiongenerate_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 callersFunctiongenerate_token_from_addr
Generate a token from an ip address and a secret.
bip_dht/src/token.rs:139
↓ 1 callersMethodget
Get an un expired connection id for the given addr.
bip_utracker/src/client/dispatcher.rs:398
↓ 1 callersFunctiongood_node_filter
Converts the given iterator into a filter iterator to return only good nodes.
bip_dht/src/routing/table.rs:382
↓ 1 callersFunctionhandle_check_bootstrap_timeout
(handler: &mut DhtHandler<H>, event_loop: &mut EventLoop<DhtHandler<H>>,
bip_dht/src/worker/handler.rs:846
↓ 1 callersFunctionhandle_check_lookup_endgame
(handler: &mut DhtHandler<H>, event_loop: &mut EventLoop<DhtHandler<H>>,
bip_dht/src/worker/handler.rs:961
↓ 1 callersFunctionhandle_check_lookup_timeout
(handler: &mut DhtHandler<H>, event_loop: &mut EventLoop<DhtHandler<H>>,
bip_dht/src/worker/handler.rs:908
↓ 1 callersFunctionhandle_incoming
(handler: &mut DhtHandler<H>, event_loop: &mut EventLoop<DhtHandler<H>>,
bip_dht/src/worker/handler.rs:330
↓ 1 callersFunctionhandle_register_sender
(handler: &mut DhtHandler<H>, sender: mpsc::Sender<DhtEvent>)
bip_dht/src/worker/handler.rs:710
↓ 1 callersFunctionhandle_shutdown
(handler: &mut DhtHandler<H>, event_loop: &mut EventLoop<DhtHandler<H>>,
bip_dht/src/worker/handler.rs:797
↓ 1 callersFunctionhandle_start_bootstrap
(handler: &mut DhtHandler<H>, event_loop: &mut EventLoop<DhtHandler<H>>,
bip_dht/src/worker/handler.rs:714
↓ 1 callersMethodhandshake_timeout
Gets the handshake timeout.
bip_handshake/src/handshake/config.rs:76
↓ 1 callersMethodhash
Hash that the peer is interested in.
bip_handshake/src/message/complete.rs:35
↓ 1 callersFunctionhex_to_bytes
(hex: &str)
bip_handshake/examples/handshake_torrent.rs:53
↓ 1 callersMethodid
Retrieve the message id corresponding to the given `ExtendedType`.
bip_peer/src/message/bits_ext/handshake.rs:189
↓ 1 callersMethodincoming
(&mut self, mut provider: Provider<'a, Self>, message: &[u8],
bip_utracker/src/client/dispatcher.rs:292
↓ 1 callersMethodindex
Error is for the element at the given index.
bip_util/src/error.rs:48
↓ 1 callersMethodinfo_hash
Hash to uniquely identify this torrent.
bip_metainfo/src/metainfo.rs:159
↓ 1 callersMethodinfo_hash
InfoHash of the current request.
bip_utracker/src/announce.rs:94
↓ 1 callersMethodinfo_type
(&self)
bip_dht/src/message/get_peers.rs:153
↓ 1 callersMethodinitialize_pending
(&mut self)
bip_select/src/discovery/ut_metadata.rs:362
↓ 1 callersFunctioninsert_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 callersMethodinsert_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 callersMethodinsert_piece
(&mut self, hash: InfoHash, index: u64)
bip_select/src/revelation/honest.rs:129
↓ 1 callersFunctioninsert_reversed_bits
Inserts the slice into the `BytesMut` but reverses the bits in each byte.
bip_select/src/revelation/honest.rs:164
↓ 1 callersMethodinsert_torrent
(&self, file: Metainfo, state: PieceCheckerState)
bip_disk/src/disk/tasks/context.rs:43
↓ 1 callersFunctionintervals_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 callersMethodipv4_addr
(&self)
bip_dht/src/router.rs:42
↓ 1 callersFunctionis_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 callersFunctionis_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 callersMethodis_expired
(&self, now: DateTime<UTC>)
bip_dht/src/storage.rs:176
↓ 1 callersFunctionis_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 callersMethodis_ipv6
Whether or not the source is an IPv6 address.
bip_utracker/src/announce.rs:433
↓ 1 callersMethodis_keep_alive
(&self)
bip_peer/src/message/mod.rs:95
↓ 1 callersFunctionis_multi_file_torrent
Returns whether or not this is a multi file torrent.
bip_metainfo/src/metainfo.rs:308
↓ 1 callersMethodis_router
(&self, addr: &SocketAddr)
bip_dht/src/worker/bootstrap.rs:103
↓ 1 callersFunctionis_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 callersMethodis_whole
Whether or not the given piece buffer is full.
bip_metainfo/src/builder/buffer.rs:73
↓ 1 callersMethodkind
(&'b self)
bip_bencode/src/mutable/bencode_mut.rs:68
↓ 1 callersMethodlength
Length of the file in bytes.
bip_metainfo/src/metainfo.rs:382
↓ 1 callersMethodlisten
(&self, addr: &SocketAddr, handle: &Handle)
bip_handshake/src/transport.rs:45
↓ 1 callersMethodmain_tracker
Announce url for the main tracker of the metainfo file.
bip_metainfo/src/metainfo.rs:38
↓ 1 callersFunctionmap_pieces_list
Map the pieces list into a list of bytes (byte string).
bip_metainfo/src/builder/mod.rs:443
↓ 1 callersMethodmax_recursion
Maximum limit allowed when decoding bencode.
bip_bencode/src/reference/decode_opt.rs:23
↓ 1 callersMethodmerge_pieces
Merges all pending piece messages into a single messages if possible.
bip_disk/src/disk/tasks/helpers/piece_checker.rs:222
↓ 1 callersMethodmessage_size
(&mut self, _message: &Self::ProtocolMessage)
bip_peer/src/codec.rs:93
↓ 1 callersMethodmessage_size
(&self, custom_prot: &mut P)
bip_peer/src/message/prot_ext/mod.rs:59
↓ 1 callersMethodmetadata
Send the given Metadata back to the client.
bip_dht/examples/debug.rs:65
↓ 1 callersFunctionnext_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 callersMethodnodes
(&self)
bip_dht/src/message/find_node.rs:116
↓ 1 callersMethodon_addr
(&self, opt_addr: Option<&SocketAddr>)
bip_handshake/src/filter/filters.rs:111
↓ 1 callersMethodon_ext
Make a filter decision based on the `Extensions`.
bip_handshake/src/filter/mod.rs:67
↓ 1 callersMethodon_hash
Make a filter decision based on the `InfoHash`.
bip_handshake/src/filter/mod.rs:70
↓ 1 callersMethodon_pid
(&self, opt_pid: Option<&PeerId>)
bip_handshake/src/filter/filters.rs:165
↓ 1 callersMethodon_prot
(&self, opt_prot: Option<&Protocol>)
bip_handshake/src/filter/filters.rs:138
↓ 1 callersMethodour_message
(&self)
bip_select/src/extended/mod.rs:61
↓ 1 callersMethodparse_bytes
(&mut self, _bytes: Bytes)
bip_peer/src/codec.rs:84
↓ 1 callersFunctionparse_client_id
(root: &BDictAccess<K, V>)
bip_peer/src/message/bencode.rs:50
↓ 1 callersFunctionparse_client_ipv4_addr
(root: &BDictAccess<K, V>)
bip_peer/src/message/bencode.rs:98
↓ 1 callersFunctionparse_client_ipv6_addr
(root: &BDictAccess<K, V>)
bip_peer/src/message/bencode.rs:85
← previousnext →401–500 of 1,430, ranked by callers