Home
last modified time | relevance | path

Searched refs:bind (Results 1 – 25 of 76) sorted by relevance

1234

/wasmtime-44.0.1/crates/test-programs/src/bin/
H A Dp3_sockets_tcp_bind.rs18 sock.bind(bind_addr).unwrap(); in test_tcp_bind_ephemeral_port()
43 sock1.bind(bind_addr).unwrap(); in test_tcp_bind_addrinuse()
50 sock2.bind(bound_addr), in test_tcp_bind_addrinuse()
63 .bind(IpSocketAddress::new( in test_tcp_bind_reuseaddr()
107 listener2.bind(bind_addr).unwrap(); in test_tcp_bind_reuseaddr()
118 sock.bind(bind_addr), in test_tcp_bind_addrnotavail()
131 let result = sock.bind(IpSocketAddress::new(wrong_ip, 0)); in test_tcp_bind_wrong_family()
146 sock_v4.bind(ipv4_broadcast), in test_tcp_bind_non_unicast()
150 sock_v4.bind(ipv4_multicast), in test_tcp_bind_non_unicast()
154 sock_v6.bind(ipv6_multicast), in test_tcp_bind_non_unicast()
[all …]
H A Dp3_sockets_udp_bind.rs16 sock.bind(bind_addr).unwrap(); in test_udp_bind_ephemeral_port()
28 let bind_addr = attempt_random_port(ip, |bind_addr| sock.bind(bind_addr)).unwrap(); in test_udp_bind_specific_port()
41 sock1.bind(bind_addr).unwrap(); in test_udp_bind_addrinuse()
47 sock2.bind(bound_addr), in test_udp_bind_addrinuse()
59 sock.bind(bind_addr), in test_udp_bind_addrnotavail()
72 let result = sock.bind(IpSocketAddress::new(wrong_ip, 0)); in test_udp_bind_wrong_family()
82 assert!(matches!(sock.bind(addr), Err(ErrorCode::InvalidArgument))); in test_udp_bind_dual_stack()
H A Dp3_sockets_tcp_states.rs59 sock.bind(bind_address).unwrap(); in test_tcp_bound_state_invariants()
62 sock.bind(bind_address), in test_tcp_bound_state_invariants()
108 sock.bind(bind_address).unwrap(); in test_tcp_listening_state_invariants()
112 sock.bind(bind_address), in test_tcp_listening_state_invariants()
168 sock_listener.bind(bind_address).unwrap(); in test_tcp_connected_state_invariants()
182 sock.bind(bind_address), in test_tcp_connected_state_invariants()
H A Dp3_sockets_tcp_connect.rs79 .bind(IpSocketAddress::new(IpAddress::IPV4_LOOPBACK, 0)) in test_tcp_connect_dual_stack()
110 listener.bind(bind_address).unwrap(); in test_tcp_connect_explicit_bind()
122 .bind(IpSocketAddress::new(IpAddress::new_unspecified(family), 0)) in test_tcp_connect_explicit_bind()
143 listener.bind(bind_address).unwrap(); in test_tcp_connect_local_address_change()
152 client.bind(IpSocketAddress::new(ip_unspec, 0)).unwrap(); in test_tcp_connect_local_address_change()
H A Dp3_sockets_udp_sample_application.rs20 server.bind(bind_address).unwrap(); in test_udp_sample_application()
24 client.bind(unspecified_addr).unwrap(); in test_udp_sample_application()
50 client.bind(unspecified_addr).unwrap(); in test_udp_sample_application()
H A Dp3_sockets_udp_states.rs41 sock.bind(bind_address).unwrap(); in test_udp_bound_state_invariants()
44 sock.bind(bind_address), in test_udp_bound_state_invariants()
71 sock.bind(bind_address), in test_udp_connected_state_invariants()
H A Dp3_sockets_tcp_listen.rs24 sock.bind(bind_addr).unwrap(); in test_tcp_listen_with_bind()
H A Dp3_sockets_udp_connect.rs153 .bind(IpSocketAddress::new(IpAddress::IPV4_LOOPBACK, 0)) in test_udp_connect_dual_stack()
184 client.bind(unspecified_port).unwrap(); in test_udp_connect_and_send()
H A Dp3_sockets_tcp_sockopts.rs132 listener.bind(bind_addr).unwrap(); in test_tcp_sockopt_inheritance()
180 listener.bind(bind_addr).unwrap(); in test_tcp_sockopt_after_listen()
H A Dp3_sockets_tcp_sample_application.rs19 listener.bind(bind_address).unwrap(); in test_tcp_sample_application()
/wasmtime-44.0.1/crates/debugger/wit/deps/
H A Dsockets.wit66 …/// A bind operation failed because the provided address is not an address that the `network` can
241 /// - `bind-in-progress`
263 /// network interface(s) to bind to.
268 /// only as long as the previous bind failed. Once a bind succeeds, the
291 /// `bind` as part of either `start-bind` or `finish-bind`.
295 /// - <https://man7.org/linux/man-pages/man2/bind.2.html>
301 finish-bind: func() -> result<_, error-code>;
660 /// network interface(s) to bind to.
676 /// `bind` as part of either `start-bind` or `finish-bind`.
680 /// - <https://man7.org/linux/man-pages/man2/bind.2.html>
[all …]
/wasmtime-44.0.1/crates/wasi/src/p2/wit/deps/
H A Dsockets.wit66 …/// A bind operation failed because the provided address is not an address that the `network` can
241 /// - `bind-in-progress`
263 /// network interface(s) to bind to.
268 /// only as long as the previous bind failed. Once a bind succeeds, the
291 /// `bind` as part of either `start-bind` or `finish-bind`.
295 /// - <https://man7.org/linux/man-pages/man2/bind.2.html>
301 finish-bind: func() -> result<_, error-code>;
660 /// network interface(s) to bind to.
676 /// `bind` as part of either `start-bind` or `finish-bind`.
680 /// - <https://man7.org/linux/man-pages/man2/bind.2.html>
[all …]
/wasmtime-44.0.1/crates/wasi-http/wit/deps/
H A Dsockets.wit66 …/// A bind operation failed because the provided address is not an address that the `network` can
241 /// - `bind-in-progress`
263 /// network interface(s) to bind to.
268 /// only as long as the previous bind failed. Once a bind succeeds, the
291 /// `bind` as part of either `start-bind` or `finish-bind`.
295 /// - <https://man7.org/linux/man-pages/man2/bind.2.html>
301 finish-bind: func() -> result<_, error-code>;
660 /// network interface(s) to bind to.
676 /// `bind` as part of either `start-bind` or `finish-bind`.
680 /// - <https://man7.org/linux/man-pages/man2/bind.2.html>
[all …]
/wasmtime-44.0.1/crates/wasi/src/p3/wit/deps/
H A Dsockets.wit47 /// A bind operation failed because the provided address is already in
192 /// only as long as the previous bind failed. Once a bind succeeds, the
213 /// - <https://man7.org/linux/man-pages/man2/bind.2.html>
217 bind: func(local-address: ip-socket-address) -> result<_, error-code>;
224 /// bound, this function will implicitly bind the socket to a random
260 /// implicitly bind the socket to a random free port.
309 /// WASI requires `listen` to perform an implicit bind if the socket
313 /// the bind itself if the guest hasn't already done so.
573 /// - <https://man7.org/linux/man-pages/man2/bind.2.html>
660 /// WASI requires `send` to perform an implicit bind if the socket
[all …]
/wasmtime-44.0.1/crates/wasi-http/src/p3/wit/deps/
H A Dsockets.wit47 /// A bind operation failed because the provided address is already in
192 /// only as long as the previous bind failed. Once a bind succeeds, the
213 /// - <https://man7.org/linux/man-pages/man2/bind.2.html>
217 bind: func(local-address: ip-socket-address) -> result<_, error-code>;
224 /// bound, this function will implicitly bind the socket to a random
260 /// implicitly bind the socket to a random free port.
309 /// WASI requires `listen` to perform an implicit bind if the socket
313 /// the bind itself if the guest hasn't already done so.
573 /// - <https://man7.org/linux/man-pages/man2/bind.2.html>
660 /// WASI requires `send` to perform an implicit bind if the socket
[all …]
/wasmtime-44.0.1/crates/wasi/src/p3/sockets/host/types/
H A Dudp.rs69 async fn bind( in bind() method
79 socket.bind(local_address)?; in bind()
/wasmtime-44.0.1/crates/wasi/src/sockets/
H A Dutil.rs9 use rustix::net::{bind, connect, connect_unspec, sockopt};
353 .bind(local_address) in tcp_bind()
382 bind(sockfd, &addr).map_err(|err| match err { in udp_bind()
H A Dudp.rs92 pub(crate) fn bind(&mut self, addr: SocketAddr) -> Result<(), ErrorCode> { in bind() method
/wasmtime-44.0.1/crates/wasi/tests/all/
H A Dstore.rs46 let supports_ipv6 = std::net::TcpListener::bind((std::net::Ipv6Addr::LOCALHOST, 0)).is_ok(); in new()
/wasmtime-44.0.1/winch/codegen/src/codegen/
H A Dcontrol.rs477 masm.bind(head)?; in emit()
523 masm.bind(*cont)?; in bind_else()
604 If { cont, .. } => masm.bind(*cont)?, in bind_exit_label()
608 masm.bind(*label)?; in bind_exit_label()
H A Dmod.rs640 self.masm.bind(defined)?; in emit_lazy_init_funcref()
647 self.masm.bind(cont) in emit_lazy_init_funcref()
1154 self.masm.bind(continuation)?; in maybe_emit_fuel_check()
1229 self.masm.bind(cont)?; in maybe_emit_epoch_check()
/wasmtime-44.0.1/crates/test-programs/src/p3/
H A Dsockets.rs155 self.bind(IpSocketAddress::new(ip, port)) in bind_unspecified()
/wasmtime-44.0.1/crates/wasi-http/tests/all/
H A Dhttp_server.rs51 TcpListener::bind(addr).await.context("failed to bind") in new()
H A Dp2.rs284 let listener = tokio::net::TcpListener::bind((Ipv4Addr::new(127, 0, 0, 1), 0)).await?; in do_wasi_http_hash_all()
458 let listener = tokio::net::TcpListener::bind((Ipv4Addr::new(127, 0, 0, 1), 0)).await?; in wasi_http_double_echo()
/wasmtime-44.0.1/tests/all/guest_debug/
H A Dmod.rs35 TcpListener::bind("127.0.0.1:0") in free_port()

1234