Searched refs:send_to (Results 1 - 9 of 9) sorted by relevance
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/uds/ |
H A D | datagram.rs | 198 /// .send_to(b"hello world", "/some/sock") 199 /// .expect("send_to failed"); 203 pub fn send_to<P: AsRef<Path>>(&self, buf: &[u8], path: P) -> io::Result<usize> { in send_to() functions 204 self.inner.send_to(buf, path) in send_to() 217 /// socket.send(b"hello world").expect("send_to failed");
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/ |
H A D | udp.rs | 41 /// let len = sender.send_to(b"Hello", receiver_addr).await?; 227 /// let len = sock.send_to(b"hello world", remote_addr).await?; 232 pub async fn send_to<A: ToSocketAddrs>(&self, buf: &[u8], target: A) -> io::Result<usize> { 236 .async_process(Interest::WRITABLE, || self.source.send_to(buf, addr)) 276 .try_io(Interest::WRITABLE, || self.source.send_to(buf, target)) in try_send_to() 314 .poll_write_io(cx, || self.source.send_to(buf, target)) in poll_send_to() 1723 /// UT test cases for `send_to()` and `peek_from()`. 1727 /// 2. Sender calls send_to() to send message to the specified address. 1740 .send_to(&buf, receiver_addr) in ut_send_to_peek_from() 1756 /// UT test cases for `send_to()` an [all...] |
/commonlibrary/rust/ylong_runtime/ylong_runtime/benches/ |
H A D | ylong_tokio_udp.rs | 162 /// Benchmark test for ylong udp function send_to() and recv_from(). 166 /// 2. Sender use send_to() to send message. 190 sender.send_to(b"Hello", receiver_addr).await.unwrap(); in ylong_udp_send_to_recv_from() 205 /// Benchmark test for tokio udp function send_to() and recv_from(). 209 /// 2. Sender use send_to() to send message. 228 .send_to(b"Hello", receiver_addr.clone()) in tokio_udp_send_to_recv_from()
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/unix/ |
H A D | datagram.rs | 321 /// socket.send(b"hello world").await.expect("send_to failed"); 341 /// .send_to(b"hello world", "/some/sock") 343 /// .expect("send_to failed"); 347 pub async fn send_to<P: AsRef<Path>>(&self, buf: &[u8], path: P) -> Result<usize> { 350 self.source.send_to(buf, path.as_ref())
|
/commonlibrary/rust/ylong_runtime/ylong_io/tests/ |
H A D | udp_socket_test.rs | 78 /// SDV test cases for `send_to()` and `recv_from()`. 104 match sender.send_to(b"Hello", receiver_addr) { in sdv_send_to_recv_from()
|
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/udp/ |
H A D | udp_socket.rs | 24 /// UdpSocket supports bind\connect\send\recv\send_to\recv_from\broadcast. 39 /// let len = sender.send_to(b"Hello", receiver_addr)?; 173 /// let len = sock.send_to(b"hello world", remote_addr)?; 178 pub fn send_to(&self, buf: &[u8], target: SocketAddr) -> io::Result<usize> { in send_to() functions 180 inner.send_to(buf, target) in send_to()
|
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/udp/ |
H A D | udp_socket.rs | 109 /// .send_to(&[0; 10], receiver_addr) 112 pub fn send_to(&self, buf: &[u8], target: SocketAddr) -> io::Result<usize> { in send_to() functions 114 .try_io(|inner| inner.send_to(buf, target), &self.inner) in send_to()
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/ |
H A D | udp_test.rs | 60 /// SDV test cases for `send_to()` and `recv_from()`. 76 .send_to(b"Hello", receiver_addr) in sdv_udp_send_to_recv_from() 304 /// SDV test cases for `send_to()` and `peek_from()`. 308 /// 2. Sender calls send_to() to send message to the specified address. 321 .send_to(&buf, receiver_addr) in sdv_send_to_peek_from() 337 /// SDV test cases for `send_to()` and `try_peek_from()`. 341 /// 2. Sender calls send_to() to send message to the specified address. 355 .send_to(&buf, receiver_addr) in sdv_send_to_try_peek_from()
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/time/ |
H A D | wheel.rs | 471 sender.send_to(buf.as_slice(), receiver_addr).await.unwrap(); in ut_sleep_drop()
|
Completed in 8 milliseconds