Go to file
Nikolay Volf 8527eceb04
Update to stable branch
2018-08-30 17:05:35 +03:00
src Add `handle` argument to named pipe creation-related methods. 2018-08-30 04:08:38 -07: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 Update to stable branch 2018-08-30 17:05:35 +03:00
LICENSE-APACHE license files 2017-03-23 17:05:45 +03:00
LICENSE-MIT license files 2017-03-23 17:05:45 +03:00
README.md Update code in README 2018-06-02 11:52:05 -07:00
appveyor.yml add appveyor 2018-08-28 14:09:21 +03:00

README.md

parity-tokio-ipc

Build Status

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 = Endpoint::new(endpoint_addr, handle).unwrap();
  endpoint.incoming().for_each(|_| println!("Connection received!"));

And IpcStream is transport-agnostic io:

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

License

parity-tokio-ipc is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, and LICENSE-MIT for details.