Struct bitflags::__core::os::ext::net::UnixStream [] [src]

pub struct UnixStream(_);
Unstable (unix_socket)

: newly added

A Unix stream socket.

Examples

#![feature(unix_socket)]

use std::os::unix::net::UnixStream;
use std::io::prelude::*;

let mut stream = UnixStream::connect("/path/to/my/socket").unwrap();
stream.write_all(b"hello world").unwrap();
let mut response = String::new();
stream.read_to_string(&mut response).unwrap();
println!("{}", response);