MCPcopy Create free account

hub / github.com/BeechatNetworkSystemsLtd/rns-vpn-rs / functions

Functions21 in github.com/BeechatNetworkSystemsLtd/rns-vpn-rs

↓ 7 callersFunctiondestination_to_ip
(destination: AddressHash, prefix: cidr::Ipv4Cidr)
src/lib.rs:834
↓ 3 callersFunctionpeer_auth
( in_link_auths: Arc<Mutex<BTreeMap<LinkId, InLinkAuth>>>, in_link_id: LinkId, peer: &mut Peer, auth_d
src/lib.rs:884
↓ 3 callersMethodsend
(&self, datagram: &[u8])
src/lib.rs:744
↓ 2 callersFunctionadd_peer
( transport: Arc<Mutex<Transport>>, peer_map: Arc<Mutex<BTreeMap<IpAddr, Peer>>>, network: cidr::Ipv4Cid
src/lib.rs:842
↓ 1 callersMethodawait_finished
Blocks until the running task exits. This will run forever unless a task exits unexpectedly.
src/lib.rs:513
↓ 1 callersMethodread
TODO: can we return a lock of &[u8] to avoid creating vec?
src/lib.rs:738
Methodclear_peers
Remove all peers and close links
src/lib.rs:600
Functiondefault_announce_freq_secs
()
src/lib.rs:37
Functiondest_to_ip
()
src/lib.rs:950
Methoddrop
(&mut self)
src/lib.rs:676
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/lib.rs:775
Methodis_running
Check if the client task is still running
src/lib.rs:507
Methodlink_open
(sent_nonce: [u8; AUTH_NONCE_BYTES])
src/lib.rs:815
Functionmain
()
rns-vpn-client/src/main.rs:55
Methodnew
( config: Config, transport: Arc<tokio::sync::Mutex<Transport>>, id: PrivateIdentity )
src/lib.rs:618
Methodpeer_add
Add peer
src/lib.rs:552
Methodpeer_list
Return the current peer list
src/lib.rs:540
Methodpeer_remove
Remove peer and close link
src/lib.rs:563
Methodrun
Initialize and run client on background tasks
src/lib.rs:132
Methodshutdown
Shutdown client task (if running) and cleanup acquired resources
src/lib.rs:523
Methodtun
(&self)
src/lib.rs:733