1 unstable release

Uses old Rust 2015

0.1.0 Mar 23, 2019

#6 in #susy

Download history 2/week @ 2024-03-08 26/week @ 2024-03-29 9/week @ 2024-04-05 1/week @ 2024-04-19 1/week @ 2024-05-24 42/week @ 2024-06-07 8/week @ 2024-06-14

51 downloads per month
Used in 2 crates

MIT/Apache

26KB
544 lines

susy-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

susy-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

~6.5MB
~100K SLoC