Home
last modified time | relevance | path

Searched refs:send_slice (Results 1 – 10 of 10) sorted by relevance

/smoltcp-0.9.1/examples/
Dhttpclient.rs93 socket.send_slice(http_get.as_ref()).expect("cannot send"); in main()
95 socket.send_slice(http_host.as_ref()).expect("cannot send"); in main()
97 .send_slice(b"Connection: close\r\n") in main()
99 socket.send_slice(b"\r\n").expect("cannot send"); in main()
Dsixlowpan.rs132 socket.send_slice(&buffer[..len], endpoint).unwrap(); in main()
162 socket.send_slice(&data[..]).unwrap(); in main()
Dserver.rs110 socket.send_slice(&data, endpoint).unwrap(); in main()
155 socket.send_slice(&data[..]).unwrap(); in main()
Dclient.rs106 socket.send_slice(&data[..]).unwrap(); in main()
Dloopback.rs160 socket.send_slice(b"0123456789abcdef").unwrap(); in main()
/smoltcp-0.9.1/src/socket/
Dudp.rs302 pub fn send_slice( in send_slice() method
602 socket.send_slice(b"abcdef", REMOTE_END), in test_send_unaddressable()
607 socket.send_slice( in test_send_unaddressable()
617 socket.send_slice( in test_send_unaddressable()
626 assert_eq!(socket.send_slice(b"abcdef", REMOTE_END), Ok(())); in test_send_unaddressable()
642 assert_eq!(socket.send_slice(b"abcdef", REMOTE_END), Ok(())); in test_send_dispatch()
644 socket.send_slice(b"123456", REMOTE_END), in test_send_dispatch()
748 assert_eq!(s.send_slice(b"abcdef", REMOTE_END), Ok(())); in test_set_hop_limit()
801 socket.send_slice(too_large, REMOTE_END), in test_send_large_packet()
804 assert_eq!(socket.send_slice(&too_large[..16 * 4], REMOTE_END), Ok(())); in test_send_large_packet()
Dicmp.rs338 pub fn send_slice(&mut self, data: &[u8], endpoint: IpAddress) -> Result<(), SendError> { in send_slice() method
651 socket.send_slice(b"abcdef", IpAddress::Ipv4(Ipv4Address::default())), in test_send_unaddressable()
654 assert_eq!(socket.send_slice(b"abcdef", REMOTE_IPV4.into()), Ok(())); in test_send_unaddressable()
670 socket.send_slice(&[0xff; 67], REMOTE_IPV4.into()), in test_send_dispatch()
680 socket.send_slice(&*packet.into_inner(), REMOTE_IPV4.into()), in test_send_dispatch()
684 socket.send_slice(b"123456", REMOTE_IPV4.into()), in test_send_dispatch()
725 s.send_slice(&*packet.into_inner(), REMOTE_IPV4.into()), in test_set_hop_limit_v4()
893 socket.send_slice(b"abcdef", IpAddress::Ipv6(Ipv6Address::default())), in test_send_unaddressable()
896 assert_eq!(socket.send_slice(b"abcdef", REMOTE_IPV6.into()), Ok(())); in test_send_unaddressable()
912 socket.send_slice(&[0xff; 67], REMOTE_IPV6.into()), in test_send_dispatch()
[all …]
Draw.rs217 pub fn send_slice(&mut self, data: &[u8]) -> Result<(), SendError> { in send_slice() method
505 assert_eq!(socket.send_slice(&[0; 56][..]), Err(SendError::BufferFull));
519 assert_eq!(socket.send_slice(&$packet[..]), Ok(()));
520 assert_eq!(socket.send_slice(b""), Err(SendError::BufferFull));
617 assert_eq!(socket.send_slice(&wrong_version[..]), Ok(())); in test_send_illegal()
626 assert_eq!(socket.send_slice(&wrong_protocol[..]), Ok(())); in test_send_illegal()
640 assert_eq!(socket.send_slice(&wrong_version[..]), Ok(())); in test_send_illegal()
649 assert_eq!(socket.send_slice(&wrong_protocol[..]), Ok(())); in test_send_illegal()
Dtcp.rs1038 pub fn send_slice(&mut self, data: &[u8]) -> Result<usize, SendError> { in send_slice() method
2284 if self.send_slice(slice) == Ok(slice.len()) { in write_str()
3718 s.send_slice(b"abcdef").unwrap(); in test_established_send()
3739 s.send_slice(b"foobar").unwrap(); in test_established_send()
3764 s.send_slice(b"abcdef").unwrap(); in test_established_send_no_ack_send()
3774 s.send_slice(b"foobar").unwrap(); in test_established_send_no_ack_send()
3795 s.send_slice(&data[..]).unwrap(); in test_established_send_buf_gt_win()
3812 s.send_slice(b"abcdef").unwrap(); in test_established_send_window_shrink()
3851 s.send_slice(b"foobar").unwrap(); in test_established_send_window_shrink()
3869 s.send_slice(b"abc").unwrap(); in test_established_send_wrap()
[all …]
/smoltcp-0.9.1/fuzz/fuzz_targets/
Dtcp_headers.rs203 .send_slice(b"0123456789abcdef0123456789abcdef0123456789abcdef")