Home
last modified time | relevance | path

Searched refs:SocketAddr (Results 1 – 21 of 21) sorted by relevance

/wasmtime-44.0.1/crates/wasi/src/sockets/
H A Dudp.rs12 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 Dmod.rs3 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 Dutil.rs2 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 Dtcp.rs17 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 Dudp.rs2 use std::net::SocketAddr;
9 pub(crate) remote_address: Option<SocketAddr>,
16 pub(crate) remote_address: Option<SocketAddr>,
H A Dnetwork.rs4 use std::net::SocketAddr;
65 addr: SocketAddr, in check_socket_addr() argument
/wasmtime-44.0.1/crates/wasi/src/p3/sockets/
H A Dconv.rs5 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 Dnetwork.rs142 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 Dudp.rs10 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 Dtcp.rs7 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 Dp2_http_outbound_request_timeout.rs2 use std::net::SocketAddr;
8 let addr = SocketAddr::from(([203, 0, 113, 12], 80)).to_string(); in main()
H A Dp3_http_outbound_request_timeout.rs2 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 Dmod.rs4 use core::net::SocketAddr;
22 addr: SocketAddr, in is_addr_allowed() argument
H A Dudp.rs8 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 Dtcp.rs15 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 Dhttp_server.rs5 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 Dmod.rs14 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 Dserve.rs11 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 Drun.rs121 use std::net::SocketAddr; in debugger_run()
122 addr.parse::<SocketAddr>() in debugger_run()
/wasmtime-44.0.1/crates/wasi/src/
H A Dctx.rs11 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 Dcli_tests.rs1113 use std::net::SocketAddr;
1515 addr: SocketAddr,
1516 shutdown_addr: SocketAddr,
1548 let mut read_addr_from_line = |prefix: &str| -> Result<SocketAddr> { in spawn()