Go to file
NikVolf b152dda75b doc test and travis 2017-03-22 18:58:09 +03:00
src doc test and travis 2017-03-22 18:58:09 +03:00
.gitignore initial 2017-03-14 18:54:10 +03:00
.travis.yml doc test and travis 2017-03-22 18:58:09 +03:00
Cargo.toml win test working 2017-03-15 15:53:01 +03:00
README.md Update README.md 2017-03-22 18:29:46 +03:00

README.md

parity-tokio-ipc

This crate abstracts interprocess transport for UNIX/Windows. On UNIX it utilizes unix sockets (tokio_uds crate) and named pipe on windows (experimental tokio-named-pipes crate).

Endpoint is transport-agnostic interface for incoming connections:

  let endpoint = match Endpoint::new(endpoint_addr, handle).unwrap();
  endpoint.for_each(|_| println!("Connection received!"));

And IpcStream is transport-agnostic io:

  let endpoint = match Endpoint::new(endpoint_addr, handle).unwrap();
  endpoint.for_each(|(ipc_stream: IpcStream, _)| io::write_all(ipc_stream, b"Hello!"));