Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BeechatNetworkSystemsLtd/rns-vpn-rs
/ functions
Functions
21 in github.com/BeechatNetworkSystemsLtd/rns-vpn-rs
⨍
Functions
21
◇
Types & classes
12
↓ 7 callers
Function
destination_to_ip
(destination: AddressHash, prefix: cidr::Ipv4Cidr)
src/lib.rs:834
↓ 3 callers
Function
peer_auth
( in_link_auths: Arc<Mutex<BTreeMap<LinkId, InLinkAuth>>>, in_link_id: LinkId, peer: &mut Peer, auth_d
src/lib.rs:884
↓ 3 callers
Method
send
(&self, datagram: &[u8])
src/lib.rs:744
↓ 2 callers
Function
add_peer
( transport: Arc<Mutex<Transport>>, peer_map: Arc<Mutex<BTreeMap<IpAddr, Peer>>>, network: cidr::Ipv4Cid
src/lib.rs:842
↓ 1 callers
Method
await_finished
Blocks until the running task exits. This will run forever unless a task exits unexpectedly.
src/lib.rs:513
↓ 1 callers
Method
read
TODO: can we return a lock of &[u8] to avoid creating vec?
src/lib.rs:738
Method
clear_peers
Remove all peers and close links
src/lib.rs:600
Function
default_announce_freq_secs
()
src/lib.rs:37
Function
dest_to_ip
()
src/lib.rs:950
Method
drop
(&mut self)
src/lib.rs:676
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/lib.rs:775
Method
is_running
Check if the client task is still running
src/lib.rs:507
Method
link_open
(sent_nonce: [u8; AUTH_NONCE_BYTES])
src/lib.rs:815
Function
main
()
rns-vpn-client/src/main.rs:55
Method
new
( config: Config, transport: Arc<tokio::sync::Mutex<Transport>>, id: PrivateIdentity )
src/lib.rs:618
Method
peer_add
Add peer
src/lib.rs:552
Method
peer_list
Return the current peer list
src/lib.rs:540
Method
peer_remove
Remove peer and close link
src/lib.rs:563
Method
run
Initialize and run client on background tasks
src/lib.rs:132
Method
shutdown
Shutdown client task (if running) and cleanup acquired resources
src/lib.rs:523
Method
tun
(&self)
src/lib.rs:733