#tokio #ipc #parity #unix #named-pipe

parity-tokio-ipc

Interprocess communication library for tokio

4 releases (breaking)

✓ Uses Rust 2018 edition

new 0.4.0 Dec 3, 2019
0.3.0 Nov 18, 2019
0.2.0 Jul 24, 2019
0.1.0 Sep 26, 2018
Download history 661/week @ 2019-08-20 621/week @ 2019-08-27 986/week @ 2019-09-03 1174/week @ 2019-09-10 851/week @ 2019-09-17 855/week @ 2019-09-24 745/week @ 2019-10-01 1007/week @ 2019-10-08 1048/week @ 2019-10-15 1389/week @ 2019-10-22 1142/week @ 2019-10-29 1301/week @ 2019-11-05 1647/week @ 2019-11-12 2111/week @ 2019-11-19 1892/week @ 2019-11-26

5,368 downloads per month
Used in 4 crates (2 directly)

MIT/Apache

27KB
634 lines

parity-tokio-ipc

Build Status

Documentation

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.

Dependencies

~4MB
~73K SLoC