diff options
| author | LLLL Colonq <llll@colonq> | 2026-04-26 22:56:52 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-04-26 22:59:25 -0400 |
| commit | d943ba194b3cfab18354e96f7be2c1e434d6c073 (patch) | |
| tree | 786b7c92f3d9abc6a147a59e440982306fc77f55 /crates/video_player/src/main.rs | |
| parent | 4a22d2573cd4014c3cc0ed784dd2e9d6bed7fb67 (diff) | |
Update
Diffstat (limited to 'crates/video_player/src/main.rs')
| -rw-r--r-- | crates/video_player/src/main.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crates/video_player/src/main.rs b/crates/video_player/src/main.rs new file mode 100644 index 0000000..e9fc5e1 --- /dev/null +++ b/crates/video_player/src/main.rs @@ -0,0 +1,13 @@ +#![feature(unix_socket_ancillary_data)] +use std::os::unix::net::{SocketAncillary, UnixDatagram}; + +fn main() { + let sock = UnixDatagram::unbound().expect("failed to create socket"); + sock.connect("/tmp/newton.sock").expect("failed to connect"); + let mut ancillary_buffer = [0; 128]; + let mut ancillary = SocketAncillary::new(&mut ancillary_buffer); + ancillary.add_fds(&[1]); + sock.send_vectored_with_ancillary(&mut [], &mut ancillary).expect("failed to send"); + println!("hi"); + loop {} +} |
