Show the crate…

1 unstable release

0.4.0 Mar 1, 2021

#16 in #incoming-connection

Download history 14/week @ 2023-12-06 28/week @ 2023-12-13 30/week @ 2023-12-20 9/week @ 2023-12-27 10/week @ 2024-01-03 58/week @ 2024-01-10 22/week @ 2024-01-17 11/week @ 2024-01-24 8/week @ 2024-01-31 19/week @ 2024-02-07 40/week @ 2024-02-14 30/week @ 2024-02-21 50/week @ 2024-02-28 43/week @ 2024-03-06 42/week @ 2024-03-13 42/week @ 2024-03-20

186 downloads per month
Used in 28 crates (2 directly)

MIT/Apache

28KB
634 lines

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

tetsy-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
~104K SLoC