MCPcopy Create free account

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

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

↓ 3 callersFunctiondummy_ipv4_addr
Generates a dummy Ipv4 address as an `IpAddr`.
bip_util/src/test.rs:19
↓ 3 callersFunctiondummy_ipv6_addr
Generates a dummy ipv6 address as an `IpAddr`.
bip_util/src/test.rs:26
↓ 3 callersFunctionencode
(val: T, bytes: &mut Vec<u8>)
bip_bencode/src/mutable/encode.rs:7
↓ 3 callersMethodextend
(&self, _info: &PeerInfo, builder: ExtendedMessageBuilder)
bip_select/src/discovery/ut_metadata.rs:482
↓ 3 callersFunctioninsert_sorted_node
Inserts the Node into the list of nodes based on its distance from the target node. Nodes at the start of the list are closer to the target node than
bip_dht/src/worker/lookup.rs:499
↓ 3 callersMethodinto_parts
Splits the `Handshaker` into its parts. This is an enhanced version of `Stream::split` in that the returned `Sink` implements `DiscoveryInfo` so it c
bip_handshake/src/handshake/handshaker.rs:124
↓ 3 callersMethodlength
(&self)
bip_util/src/contiguous.rs:30
↓ 3 callersMethodlocal_addr
(&self)
bip_handshake/src/transport.rs:75
↓ 3 callersMethodlookup_and_convert_dict
Combines a lookup operation on the given key with a conversion of the value, if found, to a dictionary.
bip_bencode/src/access/convert.rs:145
↓ 3 callersFunctionloop_handler
Create loop for feeding the handler with the items coming from the stream, and forwarding the result to the sink. If the stream is used up, or an err
bip_handshake/src/handshake/handler/mod.rs:33
↓ 3 callersMethodloop_states
Loop over all states until we finish, or hit an error. Takes care of saving/reseting states if we hit an error/finish.
bip_select/src/uber.rs:177
↓ 3 callersMethodmessage_id
(&self)
bip_dht/src/transaction.rs:229
↓ 3 callersMethodnext_state
Get the next state after the given state, return Some(next_state) or None if the given state was the last state. We return the next state regardless
bip_select/src/uber.rs:146
↓ 3 callersFunctionparse_length
Parses the length from the info or file dictionary.
bip_metainfo/src/parse.rs:147
↓ 3 callersFunctionpeer_info
(hash: InfoHash)
bip_select/src/revelation/honest.rs:260
↓ 3 callersMethodpeers
Peers the tracker knows about that are sharing the torrent.
bip_utracker/src/announce.rs:235
↓ 3 callersMethodport
Advertise port that is being listened on by the handshaker. It is important that this is the external port that the peer will be sending data to. Thi
bip_dht/examples/debug.rs:49
↓ 3 callersMethodport
Port to send the response to.
bip_utracker/src/announce.rs:124
↓ 3 callersFunctionport_to_bytes_be
Convert a port to an array of 2 bytes big endian.
bip_util/src/convert.rs:47
↓ 3 callersMethodprocess_request
Process an existing request, either re requesting a connection id or sending the actual request again. If this call is the result of a timeout, that
bip_utracker/src/client/dispatcher.rs:207
↓ 3 callersMethodremove_filter
(&self, filter: F)
bip_handshake/src/filter/filters.rs:28
↓ 3 callersMethodrun_with_lock_sink
(&mut self, item: I, call: F, not: G)
bip_peer/src/manager/mod.rs:137
↓ 3 callersMethodsearch
Perform a search for the given InfoHash with an optional announce on the closest nodes. Announcing will place your contact information in the DHT so
bip_dht/src/builder.rs:56
↓ 3 callersMethodset_comment
Set or unset a comment for the torrent file.
bip_metainfo/src/builder/mod.rs:133
↓ 3 callersMethodset_created_by
Set or unset the created by for the torrent file.
bip_metainfo/src/builder/mod.rs:148
↓ 3 callersMethodshutdown
Shutdown the current dispatcher, notifying all pending requests.
bip_utracker/src/client/dispatcher.rs:111
↓ 3 callersMethodsocket_addrs
(&self)
bip_dht/src/router.rs:64
↓ 3 callersMethodupdate_torrent
(&self, hash: InfoHash, call: C)
bip_disk/src/disk/tasks/context.rs:57
↓ 3 callersMethodvalidate_nodes
Validate the given nodes string which should be IPv4 compact
bip_dht/src/message/response.rs:35
↓ 3 callersMethodwith_stream_buffer_capacity
Specify the buffer capacity for completed `ODiskMessage`s.
bip_disk/src/disk/builder.rs:36
↓ 3 callersMethodwrite_bytes
Write the ErrorResponse to the given writer.
bip_utracker/src/error.rs:26
↓ 3 callersMethodwrite_filters
(&self, block: B)
bip_handshake/src/filter/filters.rs:61
↓ 3 callersFunctionwrite_response
Write the given tracker response through to the given provider.
bip_utracker/src/server/dispatcher.rs:140
↓ 2 callersMethodacknowledge
Acknowledges that a single request has been completed.
bip_utracker/src/client/mod.rs:210
↓ 2 callersMethodaddress
Address the peer is connected to us on.
bip_handshake/src/message/complete.rs:45
↓ 2 callersFunctionany_handshake_timer
()
bip_handshake/src/handshake/handler/handshaker.rs:135
↓ 2 callersFunctionany_other_peer_id
()
bip_handshake/src/handshake/handler/handshaker.rs:123
↓ 2 callersFunctionany_peer_id
()
bip_handshake/src/handshake/handler/handshaker.rs:119
↓ 2 callersMethodbencode_size
Get the size of the bencode portion of this message.
bip_peer/src/message/bits_ext/handshake.rs:274
↓ 2 callersMethodblock
(&self)
bip_peer/src/message/standard.rs:222
↓ 2 callersFunctionbucket_iterator
Optionally returns the filter iterator for the bucket at the specified index.
bip_dht/src/routing/table.rs:371
↓ 2 callersMethodbuffer
Get a byte slice of the current bencode byte representation.
bip_bencode/src/reference/bencode_ref.rs:51
↓ 2 callersMethodbuild
Build a `PeerManager` from the current `PeerManagerBuilder`.
bip_peer/src/manager/builder.rs:94
↓ 2 callersFunctionbuild_with_accessor
(threads: usize, accessor: A, prog
bip_metainfo/src/builder/mod.rs:275
↓ 2 callersFunctionbytes_be_to_sock_v4
Convert an array of 6 bytes big endian to a v4 socket address.
bip_util/src/convert.rs:119
↓ 2 callersFunctionbytes_be_to_sock_v6
Convert an array of 18 bytes big endian to a v6 socket address.
bip_util/src/convert.rs:129
↓ 2 callersMethodbytes_ext
(&self)
bip_bencode/src/reference/bencode_ref.rs:117
↓ 2 callersMethodcalculate_diff
Calculate the diff of old to new good/bad pieces and store them in the piece checker state to be retrieved by the caller.
bip_disk/src/disk/tasks/helpers/piece_checker.rs:50
↓ 2 callersMethodcapacity
(&self)
bip_util/src/contiguous.rs:26
↓ 2 callersFunctioncheck_index
(ref_filters: &[Box<HandshakeFilter + Send + Sync>], filter: &F)
bip_handshake/src/filter/filters.rs:70
↓ 2 callersMethodcheck_stream_unblock
(&mut self)
bip_select/src/discovery/ut_metadata.rs:420
↓ 2 callersMethodcheckout
Checkout a piece buffer (possibly blocking) to be used.
bip_metainfo/src/builder/buffer.rs:35
↓ 2 callersFunctioncomplete_handshake
(sock: S, addr: SocketAddr, ext: Extensions, pid: PeerId, filters: Filters, timer: HandshakeTimer)
bip_handshake/src/handshake/handler/handshaker.rs:66
↓ 2 callersMethodconnection_id
Connection ID supplied with a request to validate the senders address. For Connect requests, this will always be equal to 0x41727101980. Therefore, y
bip_utracker/src/request.rs:97
↓ 2 callersMethodcreation_date
Creation date in UNIX epoch format for the metainfo file.
bip_metainfo/src/metainfo.rs:63
↓ 2 callersMethodencode
Encode the `BencodeMut` into a buffer representing the bencode.
bip_bencode/src/mutable/bencode_mut.rs:55
↓ 2 callersFunctionencode_bytes
(list: &[u8], bytes: &mut Vec<u8>)
bip_bencode/src/mutable/encode.rs:25
↓ 2 callersMethodevents
An event Receiver which will receive events occuring within the DHT. It is important to at least monitor the DHT for shutdown events as any calls aft
bip_dht/src/builder.rs:66
↓ 2 callersFunctionexecute_on_pool
(msg: IDiskMessage, pool: &CpuPool, context: DiskManagerContext<F>)
bip_disk/src/disk/tasks/mod.rs:18
↓ 2 callersMethodexpiration
(&self)
bip_dht/src/storage.rs:143
↓ 2 callersMethodgenerate
(&mut self)
bip_util/src/trans/sequential.rs:29
↓ 2 callersMethodgenerate
Generate a new ClientToken.
bip_utracker/src/client/mod.rs:186
↓ 2 callersFunctiongenerate_aids
(next_alloc, aids)
bip_dht/src/transaction.rs:107
↓ 2 callersFunctiongenerate_token_from_addr_v4
Generate a token from an ipv4 address and a secret.
bip_dht/src/token.rs:147
↓ 2 callersFunctiongenerate_token_from_addr_v6
Generate a token from an ipv6 address and a secret.
bip_dht/src/token.rs:162
↓ 2 callersFunctionhandle_check_table_refresh
(table_actions: &mut HashMap<ActionID, TableAction>, work_storage: &mut Detac
bip_dht/src/worker/handler.rs:810
↓ 2 callersFunctionhandle_start_lookup
(table_actions: &mut HashMap<ActionID, TableAction>, work_storage: &mut DetachedDhtH
bip_dht/src/worker/handler.rs:767
↓ 2 callersMethodheartbeat_interval
Retrieve the hearbeat interval `Duration`.
bip_peer/src/manager/builder.rs:84
↓ 2 callersMethodheartbeat_timeout
Retrieve the heartbeat timeout `Duration`.
bip_peer/src/manager/builder.rs:89
↓ 2 callersFunctioninitiate_handshake
(sock: S, init_msg: InitiateMessage, ext: Extensions, pid: PeerId, filters: Filters, timer: HandshakeTimer)
bip_handshake/src/handshake/handler/handshaker.rs:29
↓ 2 callersMethodinsert
(&mut self, key: &'a [u8], value: V)
bip_bencode/src/access/dict.rs:35
↓ 2 callersMethodinsert_bytes
(&mut self, byte: u8, contents: Vec<u8>)
bip_utracker/src/option.rs:112
↓ 2 callersMethodint
(&self)
bip_bencode/src/access/bencode.rs:66
↓ 2 callersMethodinto_accessor
(self)
bip_metainfo/src/accessor.rs:99
↓ 2 callersFunctionis_expired
Returns true if the connect id received at prev_time is now expired.
bip_utracker/src/client/dispatcher.rs:441
↓ 2 callersMethodis_ipv4
Whether or not the source is an IPv4 address.
bip_utracker/src/announce.rs:443
↓ 2 callersMethodis_private
Whether or not the torrent is private.
bip_metainfo/src/metainfo.rs:178
↓ 2 callersMethoditer
(&self)
bip_peer/src/message/standard.rs:79
↓ 2 callersMethodkind
(&'b self)
bip_bencode/src/access/bencode.rs:58
↓ 2 callersFunctionlast_piece_size
(info_dict: &Info)
bip_disk/src/disk/tasks/helpers/piece_checker.rs:137
↓ 2 callersFunctionnum_good_nodes
Number of good nodes in the RoutingTable.
bip_dht/src/worker/handler.rs:236
↓ 2 callersMethodon_update
One or both sides of a peer connection had their extended information updated. This can be called multiple times for any given peer as extension info
bip_select/src/extended/mod.rs:36
↓ 2 callersMethodopen_file
(&self, path: P)
bip_disk/src/disk/fs/mod.rs:42
↓ 2 callersFunctionparse_announce_list
Parses the announce list from the root dictionary.
bip_metainfo/src/parse.rs:51
↓ 2 callersFunctionparse_announce_url
Parses the announce url from the root dictionary.
bip_metainfo/src/parse.rs:71
↓ 2 callersFunctionparse_comment
Parses the comment from the root dictionary.
bip_metainfo/src/parse.rs:83
↓ 2 callersFunctionparse_created_by
Parses the created by from the root dictionary.
bip_metainfo/src/parse.rs:89
↓ 2 callersFunctionparse_creation_date
Parses the creation date from the root dictionary.
bip_metainfo/src/parse.rs:77
↓ 2 callersFunctionparse_info_dictionary
Parses the given info dictionary and builds an Info from it.
bip_metainfo/src/metainfo.rs:260
↓ 2 callersFunctionparse_ipv4_addr
(ipv4_bytes: &[u8])
bip_peer/src/message/bencode.rs:123
↓ 2 callersFunctionparse_ipv6_addr
(ipv6_bytes: &[u8])
bip_peer/src/message/bencode.rs:127
↓ 2 callersFunctionparse_md5sum
Parses the md5sum from the info or file dictionary.
bip_metainfo/src/parse.rs:153
↓ 2 callersFunctionparse_name
Parses the name from the info dictionary.
bip_metainfo/src/parse.rs:127
↓ 2 callersFunctionparse_request
Parse an AnnounceRequest with the given SourceIP type constructor.
bip_utracker/src/announce.rs:154
↓ 2 callersFunctionparse_respone
Parse an AnnounceResponse with the given CompactPeers type constructor.
bip_utracker/src/announce.rs:253
↓ 2 callersFunctionparse_root_dict
Parses the root bencode as a dictionary.
bip_metainfo/src/parse.rs:45
↓ 2 callersMethodpeer_capacity
Retrieve the peer capacity.
bip_peer/src/manager/builder.rs:69
↓ 2 callersMethodpeer_id
PeerId of the current request.
bip_utracker/src/announce.rs:99
↓ 2 callersMethodpingable_nodes
Iterator over all good nodes and questionable nodes in the bucket.
bip_dht/src/routing/bucket.rs:46
↓ 2 callersMethodpoll
(&mut self)
bip_select/src/uber.rs:354
← previousnext →201–300 of 1,430, ranked by callers