| /wasmtime-44.0.1/crates/wasi/src/sockets/ |
| H A D | udp.rs | 12 use std::net::SocketAddr; 37 Connected(SocketAddr), 92 pub(crate) fn bind(&mut self, addr: SocketAddr) -> Result<(), ErrorCode> { in bind() 152 fn connect_common(&mut self, addr: SocketAddr) -> Result<(), ErrorCode> { in connect_common() 184 addr: Option<SocketAddr>, in send_p3() argument 188 SendTo(Arc<tokio::net::UdpSocket>, SocketAddr), in send_p3() 240 ) -> impl Future<Output = Result<(Vec<u8>, SocketAddr), ErrorCode>> + use<> { in receive_p3() argument 242 Recv(Arc<tokio::net::UdpSocket>, SocketAddr), in receive_p3() 268 pub(crate) fn local_address(&self) -> Result<SocketAddr, ErrorCode> { in local_address() argument 279 pub(crate) fn remote_address(&self) -> Result<SocketAddr, ErrorCode> { in remote_address() argument [all …]
|
| H A D | mod.rs | 3 use std::net::SocketAddr; 129 dyn Fn(SocketAddr, SocketAddrUse) -> Pin<Box<dyn Future<Output = bool> + Send + Sync>> 141 f: impl Fn(SocketAddr, SocketAddrUse) -> Pin<Box<dyn Future<Output = bool> + Send + Sync>> in new() argument 151 addr: SocketAddr, in check() argument 166 …type Target = dyn Fn(SocketAddr, SocketAddrUse) -> Pin<Box<dyn Future<Output = bool> + Send + Sync…
|
| H A D | util.rs | 2 use core::net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr}; 62 pub fn is_valid_remote_address(addr: SocketAddr) -> bool { in is_valid_remote_address() 338 local_address: SocketAddr, in tcp_bind() argument 381 pub fn udp_bind(sockfd: impl AsFd, addr: SocketAddr) -> Result<(), ErrorCode> { in udp_bind() 399 pub fn udp_connect(sockfd: impl AsFd, addr: SocketAddr) -> Result<(), Errno> { in udp_connect() 457 pub fn implicit_bind_addr(family: SocketAddressFamily) -> SocketAddr { in implicit_bind_addr() argument 462 SocketAddr::new(ip, 0) in implicit_bind_addr()
|
| H A D | tcp.rs | 17 use std::net::SocketAddr; 255 pub(crate) fn start_bind(&mut self, addr: SocketAddr) -> Result<(), ErrorCode> { in start_bind() 293 addr: &SocketAddr, in start_connect() argument 511 pub(crate) fn local_address(&self) -> Result<SocketAddr, ErrorCode> { in local_address() argument 522 pub(crate) fn remote_address(&self) -> Result<SocketAddr, ErrorCode> { in remote_address() argument
|
| /wasmtime-44.0.1/crates/wasi/src/p2/ |
| H A D | udp.rs | 2 use std::net::SocketAddr; 9 pub(crate) remote_address: Option<SocketAddr>, 16 pub(crate) remote_address: Option<SocketAddr>,
|
| H A D | network.rs | 4 use std::net::SocketAddr; 65 addr: SocketAddr, in check_socket_addr() argument
|
| /wasmtime-44.0.1/crates/wasi/src/p3/sockets/ |
| H A D | conv.rs | 5 use core::net::{IpAddr, SocketAddr, SocketAddrV4, SocketAddrV6}; 28 impl From<types::IpSocketAddress> for SocketAddr { implementation 37 impl From<SocketAddr> for types::IpSocketAddress { 38 fn from(addr: SocketAddr) -> Self { in from() 40 SocketAddr::V4(v4) => Self::Ipv4(v4.into()), in from() 41 SocketAddr::V6(v6) => Self::Ipv6(v6.into()), in from() 84 type Iter = <SocketAddr as ToSocketAddrs>::Iter; 87 SocketAddr::from(*self).to_socket_addrs() in to_socket_addrs()
|
| /wasmtime-44.0.1/crates/wasi/src/p2/host/ |
| H A D | network.rs | 142 impl From<IpSocketAddress> for std::net::SocketAddr { implementation 151 impl From<std::net::SocketAddr> for IpSocketAddress { 152 fn from(addr: std::net::SocketAddr) -> Self { in from() 154 std::net::SocketAddr::V4(v4) => Self::Ipv4(v4.into()), in from() 155 std::net::SocketAddr::V6(v6) => Self::Ipv6(v6.into()), in from() 198 type Iter = <std::net::SocketAddr as std::net::ToSocketAddrs>::Iter; 201 std::net::SocketAddr::from(*self).to_socket_addrs() in to_socket_addrs()
|
| H A D | udp.rs | 10 use std::net::SocketAddr; 27 let local_address = SocketAddr::from(local_address); in start_bind() 63 let remote_address = remote_address.map(SocketAddr::from); in stream() 301 let provided_addr = datagram.remote_address.map(SocketAddr::from); in send()
|
| H A D | tcp.rs | 7 use std::net::SocketAddr; 24 let local_address: SocketAddr = local_address.into(); in start_bind() 50 let remote_address: SocketAddr = remote_address.into(); in start_connect()
|
| /wasmtime-44.0.1/crates/test-programs/src/bin/ |
| H A D | p2_http_outbound_request_timeout.rs | 2 use std::net::SocketAddr; 8 let addr = SocketAddr::from(([203, 0, 113, 12], 80)).to_string(); in main()
|
| H A D | p3_http_outbound_request_timeout.rs | 2 use std::net::SocketAddr; 13 let addr = SocketAddr::from(([203, 0, 113, 12], 80)).to_string(); in run()
|
| /wasmtime-44.0.1/crates/wasi/src/p3/sockets/host/types/ |
| H A D | mod.rs | 4 use core::net::SocketAddr; 22 addr: SocketAddr, in is_addr_allowed() argument
|
| H A D | udp.rs | 8 use std::net::SocketAddr; 42 let remote_address = remote_address.map(SocketAddr::from); in send() 74 let local_address = SocketAddr::from(local_address); in bind() 89 let remote_address = SocketAddr::from(remote_address); in connect()
|
| H A D | tcp.rs | 15 use std::net::{Shutdown, SocketAddr}; 251 let remote_address = SocketAddr::from(remote_address); in connect() 352 let local_address = SocketAddr::from(local_address); in bind()
|
| /wasmtime-44.0.1/crates/wasi-http/tests/all/ |
| H A D | http_server.rs | 5 use std::net::{SocketAddr, TcpStream}; 32 addr: SocketAddr, 50 let addr = SocketAddr::from(([127, 0, 0, 1], 0)); in new()
|
| /wasmtime-44.0.1/tests/all/guest_debug/ |
| H A D | mod.rs | 14 use std::net::{SocketAddr, TcpListener, TcpStream}; 244 fn http_request(addr: SocketAddr, path: &str) -> Result<String> { in http_request() argument 254 fn parse_http_addr(line: &str) -> Result<SocketAddr> { in parse_http_addr() argument
|
| /wasmtime-44.0.1/src/commands/ |
| H A D | serve.rs | 11 use std::net::SocketAddr; 102 const DEFAULT_ADDR: std::net::SocketAddr = std::net::SocketAddr::new( 119 addr: SocketAddr, 126 shutdown_addr: Option<SocketAddr>, 230 use std::net::SocketAddr as SA; in debugger_setup() 619 SocketAddr::V4(_) => tokio::net::TcpSocket::new_v4()?, in serve() 620 SocketAddr::V6(_) => tokio::net::TcpSocket::new_v6()?, in serve() 997 addr: SocketAddr, in debug_serve_body() argument 1023 SocketAddr::V4(_) => tokio::net::TcpSocket::new_v4()?, in debug_serve_body() 1024 SocketAddr::V6(_) => tokio::net::TcpSocket::new_v6()?, in debug_serve_body()
|
| H A D | run.rs | 121 use std::net::SocketAddr; in debugger_run() 122 addr.parse::<SocketAddr>() in debugger_run()
|
| /wasmtime-44.0.1/crates/wasi/src/ |
| H A D | ctx.rs | 11 use std::net::SocketAddr; 399 F: Fn(SocketAddr, SocketAddrUse) -> Pin<Box<dyn Future<Output = bool> + Send + Sync>> in socket_addr_check() argument
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | cli_tests.rs | 1113 use std::net::SocketAddr; 1515 addr: SocketAddr, 1516 shutdown_addr: SocketAddr, 1548 let mut read_addr_from_line = |prefix: &str| -> Result<SocketAddr> { in spawn()
|