Show the crate…

1 unstable release

0.4.0 Mar 1, 2021

#19 in #incoming-connection

Download history 27/week @ 2024-09-08 27/week @ 2024-09-15 48/week @ 2024-09-22 47/week @ 2024-09-29 2/week @ 2024-10-06 7/week @ 2024-10-13 15/week @ 2024-10-20 14/week @ 2024-10-27 14/week @ 2024-11-03 9/week @ 2024-11-10 12/week @ 2024-11-17 27/week @ 2024-11-24 22/week @ 2024-12-01 51/week @ 2024-12-08 34/week @ 2024-12-15 4/week @ 2024-12-22

117 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

~8MB
~131K SLoC