Searched refs:data_socket (Results 1 – 5 of 5) sorted by relevance
/third_party/rust/crates/rustix/tests/net/ |
D | poll.rs | 41 let data_socket = accept(&connection_socket).unwrap(); in server() localVariable 43 let mut fds = [PollFd::new(&data_socket, PollFlags::IN)]; in server() 48 let expected_nread = rustix::io::ioctl_fionread(&data_socket).unwrap(); in server() 49 let nread = recv(&data_socket, &mut buffer, RecvFlags::empty()).unwrap(); in server() 53 let mut fds = [PollFd::new(&data_socket, PollFlags::OUT)]; in server() 58 send(&data_socket, b"goodnight, moon", SendFlags::empty()).unwrap(); in server() 74 let data_socket = socket( in client() localVariable 80 connect_v6(&data_socket, &addr).unwrap(); in client() 82 let mut fds = [PollFd::new(&data_socket, PollFlags::OUT)]; in client() 87 send(&data_socket, b"hello, world", SendFlags::empty()).unwrap(); in client() [all …]
|
D | unix.rs | 51 let data_socket = accept(&connection_socket).unwrap(); in server() localVariable 54 let nread = read(&data_socket, &mut buffer).unwrap(); in server() 66 write(&data_socket, DecInt::new(sum).as_bytes()).unwrap(); in server() 85 let data_socket = socket( in client() localVariable 91 connect_unix(&data_socket, &addr).unwrap(); in client() 94 write(&data_socket, arg.as_bytes()).unwrap(); in client() 96 write(&data_socket, b"sum").unwrap(); in client() 98 let nread = read(&data_socket, &mut buffer).unwrap(); in client() 105 let data_socket = socket( in client() localVariable 111 connect_unix(&data_socket, &addr).unwrap(); in client() [all …]
|
D | v6.rs | 42 let data_socket = accept(&connection_socket).unwrap(); in server() localVariable 43 let nread = recv(&data_socket, &mut buffer, RecvFlags::empty()).unwrap(); in server() 46 send(&data_socket, b"goodnight, moon", SendFlags::empty()).unwrap(); in server() 62 let data_socket = socket( in client() localVariable 68 connect_v6(&data_socket, &addr).unwrap(); in client() 70 send(&data_socket, b"hello, world", SendFlags::empty()).unwrap(); in client() 72 let nread = recv(&data_socket, &mut buffer, RecvFlags::empty()).unwrap(); in client()
|
D | v4.rs | 38 let data_socket = accept(&connection_socket).unwrap(); in server() localVariable 39 let nread = recv(&data_socket, &mut buffer, RecvFlags::empty()).unwrap(); in server() 42 send(&data_socket, b"goodnight, moon", SendFlags::empty()).unwrap(); in server() 58 let data_socket = socket(AddressFamily::INET, SocketType::STREAM, Protocol::default()).unwrap(); in client() localVariable 59 connect_v4(&data_socket, &addr).unwrap(); in client() 61 send(&data_socket, b"hello, world", SendFlags::empty()).unwrap(); in client() 63 let nread = recv(&data_socket, &mut buffer, RecvFlags::empty()).unwrap(); in client()
|
/third_party/rust/crates/rustix/tests/io/ |
D | epoll.rs | 76 let data_socket = in client() localVariable 78 connect_v4(&data_socket, &addr).unwrap(); in client() 80 let nread = read(&data_socket, &mut buffer).unwrap(); in client()
|