Home
last modified time | relevance | path

Searched refs:first_message (Results 1 – 4 of 4) sorted by relevance

/wasmtime-44.0.1/crates/test-programs/src/bin/
H A Dp2_tcp_sample_application.rs8 let first_message = b"Hello, world!"; in test_tcp_sample_application() localVariable
25 client_output.blocking_write_util(first_message).unwrap(); in test_tcp_sample_application()
34 let data = input.blocking_read(first_message.len() as u64).unwrap(); in test_tcp_sample_application()
37 assert_eq!(data, first_message); // Not guaranteed to work but should work in practice. in test_tcp_sample_application()
H A Dp3_sockets_tcp_sample_application.rs14 let first_message = b"Hello, world!"; in test_tcp_sample_application() localVariable
37 let remaining = data_tx.write_all(first_message.into()).await; in test_tcp_sample_application()
47 assert_eq!(result, StreamResult::Complete(first_message.len())); in test_tcp_sample_application()
49 assert_eq!(data, first_message); // Not guaranteed to work but should work in practice. in test_tcp_sample_application()
H A Dp3_sockets_udp_sample_application.rs14 let first_message = &[]; in test_udp_sample_application() localVariable
29 client.send(first_message.to_vec(), None).await.unwrap(); in test_udp_sample_application()
38 assert_eq!(buf, first_message); in test_udp_sample_application()
H A Dp2_udp_sample_application.rs10 let first_message = &[]; in test_udp_sample_application() localVariable
29 data: first_message.to_vec(), in test_udp_sample_application()
47 assert_eq!(datagrams[0].data, first_message); in test_udp_sample_application()