s-tokio-ipc

Crates.ios-tokio-ipc
lib.rss-tokio-ipc
version0.1.0
sourcesrc
created_at2019-05-14 07:38:47.709533
updated_at2019-05-14 07:38:47.709533
descriptionInterprocess communication library for tokio.
homepagehttps://github.com/susytech/s-tokio-ipc
repositoryhttps://github.com/susytech/s-tokio-ipc
max_upload_size
id134212
size38,528
Superstring.ch (SUSYLABS)

documentation

README

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

s-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.

Commit count: 0

cargo fmt