Home
last modified time | relevance | path

Searched refs:net (Results 1 – 25 of 123) sorted by relevance

12345

/webrtc/turn/src/relay/
H A Drelay_range.rs5 use std::net::IpAddr;
6 use util::vnet::net::*;
25 pub net: Arc<Net>, field
59 .net in allocate_conn()
62 let conn = self.net.bind(addr).await?; in allocate_conn()
71 .net in allocate_conn()
74 let conn = match self.net.bind(addr).await { in allocate_conn()
H A Drelay_static.rs5 use std::net::IpAddr;
6 use util::vnet::net::*;
17 pub net: Arc<Net>, field
38 .net in allocate_conn()
41 let conn = self.net.bind(addr).await?; in allocate_conn()
H A Drelay_none.rs5 use util::vnet::net::*;
11 pub net: Arc<Net>, field
32 .net in allocate_conn()
35 let conn = self.net.bind(addr).await?; in allocate_conn()
/webrtc/util/src/ifaces/
H A Dmod.rs6 Broadcast(::std::net::SocketAddr),
7 Destination(::std::net::SocketAddr),
23 pub addr: Option<::std::net::SocketAddr>,
24 pub mask: Option<::std::net::SocketAddr>,
/webrtc/ice/src/agent/
H A Dagent_gather_test.rs8 use tokio::net::UdpSocket;
13 let vnet = Arc::new(net::Net::new(Some(net::NetConfig::default()))); in test_vnet_gather_no_local_ip_address()
16 net: Some(Arc::clone(&vnet)), in test_vnet_gather_no_local_ip_address()
44 let nw = Arc::new(net::Net::new(Some(net::NetConfig::default()))); in test_vnet_gather_dynamic_ip_address()
78 let nw = Arc::new(net::Net::new(Some(net::NetConfig::default()))); in test_vnet_gather_listen_udp()
139 let nw = Arc::new(net::Net::new(Some(net::NetConfig { in test_vnet_gather_with_nat_1to1_as_host_candidates()
255 let nw = Arc::new(net::Net::new(Some(net::NetConfig { in test_vnet_gather_with_nat_1to1_as_srflx_candidates()
266 net: Some(nw), in test_vnet_gather_with_nat_1to1_as_srflx_candidates()
327 let nw = Arc::new(net::Net::new(Some(net::NetConfig::default()))); in test_vnet_gather_with_interface_filter()
439 let nw = Arc::new(net::Net::new(Some(net::NetConfig { in test_vnet_gather_muxed_udp()
[all …]
H A Dagent_gather.rs46 net: Arc<Net>, field
55 net: Arc<Net>, field
65 net: Arc<Net>, field
74 net: Arc<Net>, field
100 net: Arc::clone(&params.net), in gather_candidates_internal()
123 net: Arc::clone(&params.net), in gather_candidates_internal()
139 net: Arc::clone(&params.net), in gather_candidates_internal()
153 let net = Arc::clone(&params.net); in gather_candidates_internal() localVariable
203 net, in gather_candidates_local()
379 net, in gather_candidates_local_udp_mux()
[all …]
H A Dagent_vnet_test.rs78 let wnet = Arc::new(net::Net::new(Some(net::NetConfig { in build_simple_vnet()
91 let net0 = Arc::new(net::Net::new(Some(net::NetConfig { in build_simple_vnet()
95 let net1 = Arc::new(net::Net::new(Some(net::NetConfig { in build_simple_vnet()
127 let wnet = Arc::new(net::Net::new(Some(net::NetConfig { in build_vnet()
146 let net0 = Arc::new(net::Net::new(Some(net::NetConfig { in build_vnet()
166 let net1 = Arc::new(net::Net::new(Some(net::NetConfig { in build_vnet()
415 net: &Arc<net::Net>, in connect_net2router()
775 let net0 = Arc::new(net::Net::new(Some(net::NetConfig { in test_disconnected_to_connected()
779 let net1 = Arc::new(net::Net::new(Some(net::NetConfig { in test_disconnected_to_connected()
925 let net0 = Arc::new(net::Net::new(Some(net::NetConfig { in test_write_use_valid_pair()
[all …]
H A Dmod.rs32 use std::net::{Ipv4Addr, SocketAddr};
34 use util::{vnet::net::*, Buffer};
104 pub(crate) net: Arc<Net>, field
179 let net = if let Some(net) = config.net { in new() localVariable
180 if net.is_virtual() { in new()
187 net in new()
200 net, in new()
454 net: Arc::clone(&self.net), in gather_candidates()
H A Dagent_config.rs8 use util::vnet::net::*;
10 use std::net::IpAddr;
142 pub net: Option<Arc<Net>>, field
/webrtc/turn/src/server/
H A Dserver_test.rs9 use std::net::{IpAddr, Ipv4Addr, SocketAddr};
11 use tokio::net::UdpSocket;
55 net: Arc::new(net::Net::new(None)), in test_server_simple()
99 net0: Arc<net::Net>,
100 net1: Arc<net::Net>,
101 netl0: Arc<net::Net>,
112 let net0 = Arc::new(net::Net::new(Some(net::NetConfig { in build_vnet()
117 let net1 = Arc::new(net::Net::new(Some(net::NetConfig { in build_vnet()
151 let netl0 = Arc::new(net::Net::new(Some(net::NetConfig::default()))); in build_vnet()
190 net: Arc::clone(&net0), in build_vnet()
/webrtc/ice/src/network_type/
H A Dmod.rs8 use std::net::IpAddr;
131 let net = network.to_lowercase(); in determine_network_type() localVariable
132 if net.starts_with(UDP) { in determine_network_type()
138 } else if net.starts_with(TCP) { in determine_network_type()
/webrtc/turn/src/auth/
H A Dauth_test.rs43 use std::net::IpAddr; in test_new_long_term_auth_handler()
46 use tokio::net::UdpSocket; in test_new_long_term_auth_handler()
47 use util::vnet::net::*; in test_new_long_term_auth_handler()
65 net: Arc::new(Net::new(None)), in test_new_long_term_auth_handler()
/webrtc/util/src/vnet/router/
H A Drouter_test.rs8 net: Net, field
19 net: Net::Ifs(vec![]), in default()
36 let nic = self.net.get_nic()?; in add_addrs_to_interface()
37 let mut net = nic.lock().await; in add_addrs_to_interface() localVariable
42 let nic = self.net.get_nic()?; in set_router()
43 let net = nic.lock().await; in set_router() localVariable
44 net.set_router(r).await in set_router()
100 let net = nic.lock().await; in get_static_ips() localVariable
101 net.get_static_ips().await in get_static_ips()
167 let nic = net.get_nic()?; in test_router_standalone_add_net()
[all …]
/webrtc/util/src/conn/
H A Dmod.rs20 use std::net::SocketAddr;
22 use tokio::net::ToSocketAddrs;
57 for remote_addr in tokio::net::lookup_host(host).await? { in lookup_host()
/webrtc/turn/src/server/request/
H A Drequest_test.rs4 use std::{net::IpAddr, str::FromStr};
6 net::UdpSocket,
9 use util::vnet::net::*;
68 net: Arc::new(Net::new(None)), in test_allocation_lifetime_deletion_zero_lifetime()
/webrtc/turn/examples/
H A Dturn_server_udp.rs8 use std::net::{IpAddr, SocketAddr};
11 use tokio::net::UdpSocket;
14 use util::vnet::net::*;
122 net: Arc::new(Net::new(None)), in main()
/webrtc/util/src/ifaces/ffi/unix/
H A Dmod.rs3 use std::{net, ptr};
5 use std::net::IpAddr;
93 pub fn nix_socketaddr_to_sockaddr(sa: *mut nix::sys::socket::sockaddr) -> Option<net::SocketAddr> { in nix_socketaddr_to_sockaddr()
104 IpAddr::V4(net::Ipv4Addr::new( in nix_socketaddr_to_sockaddr()
118 IpAddr::V6(net::Ipv6Addr::new( in nix_socketaddr_to_sockaddr()
133 Some(net::SocketAddr::new(addr, port)) in nix_socketaddr_to_sockaddr()
/webrtc/ice/src/candidate/
H A Dcandidate_server_reflexive_test.rs8 use tokio::net::UdpSocket;
39 net: Arc::new(util::vnet::net::Net::new(None)), in test_server_reflexive_only_connection()
H A Dcandidate_relay_test.rs11 use tokio::net::UdpSocket;
60 net: Arc::new(util::vnet::net::Net::new(None)), in test_relay_only_connection()
/webrtc/util/src/vnet/
H A Dnet.rs15 use std::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr};
19 use tokio::net::UdpSocket;
479 let net = vnet.lock().await; in get_interfaces() localVariable
480 net.get_interfaces().to_vec() in get_interfaces()
490 let net = vnet.lock().await; in get_interface() localVariable
491 net.get_interface(ifc_name).await in get_interface()
515 let net = vnet.lock().await; in resolve_addr() localVariable
525 let net = vnet.lock().await; in bind() localVariable
526 net.bind(addr).await in bind()
539 let net = vnet.lock().await; in dail() localVariable
[all …]
H A Dmod.rs7 pub mod net; module
/webrtc/turn/src/client/
H A Dclient_test.rs6 use std::net::IpAddr;
7 use tokio::net::UdpSocket;
10 use util::vnet::net::*;
147 net: Arc::new(Net::new(None)), in test_client_nonce_expiration()
/webrtc/mdns/src/
H A Derror.rs4 use std::net;
67 ParseIp(#[from] net::AddrParseError),
/webrtc/ice/src/udp_mux/
H A Dsocket_addr_ext.rs3 use std::net::SocketAddr;
28 use std::net::SocketAddr::{V4, V6}; in encode()
65 use std::net::{Ipv4Addr, Ipv6Addr, SocketAddrV4, SocketAddrV6}; in decode()
124 use std::net::{Ipv4Addr, Ipv6Addr, SocketAddrV4, SocketAddrV6};
/webrtc/examples/examples/swap-tracks/
H A DREADME.md15 [jsfiddle.net](https://jsfiddle.net/dzc17fga/) you should see two text-areas and a 'Start Session' …

12345