#pipe #named #io-operations #windows #io-write

named_pipe

Wrapper for overlapped (asyncronous) IO of Windows's named pipes

5 unstable releases

0.4.1 Apr 6, 2019
0.4.0 Jan 3, 2019
0.3.0 Mar 16, 2018
0.2.4 Mar 29, 2017
0.1.2 Aug 30, 2015

#10 in #io-operations

Download history 3100/week @ 2024-06-13 3134/week @ 2024-06-20 3041/week @ 2024-06-27 2424/week @ 2024-07-04 2850/week @ 2024-07-11 4087/week @ 2024-07-18 3427/week @ 2024-07-25 3091/week @ 2024-08-01 3193/week @ 2024-08-08 3264/week @ 2024-08-15 3685/week @ 2024-08-22 4001/week @ 2024-08-29 3883/week @ 2024-09-05 3268/week @ 2024-09-12 3481/week @ 2024-09-19 3024/week @ 2024-09-26

14,452 downloads per month
Used in 172 crates (13 directly)

MIT/Apache

58KB
1.5K SLoC

named_pipe

Build status

Named-Pipe is a rust wrapper for overlapped (asyncronous) IO of Windows's named pipes.

Install

Use cargo package.

Documentation

Hosted on github pages.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

Named-Pipe is a wrapper for overlapped (asyncronous) IO of Windows's named pipes.

Description

You can use wait or wait_all to select(2)-like wait for multiple pending IO operations (which is read/write from/to PipeServer/PipeClient or waiting for new client).

Or you can use ConnectingServer::wait or io::Read and io::Write implementaions for PipeServer and PipeClient for syncronous communication.

For better understanding please refer to [Named Pipes documentation on MSDN] (https://www.google.com/search?q=msdn+named+pipes&ie=utf-8&oe=utf-8).

Usage

To create new pipe instance use PipeOptions structure.

To connect to a pipe server use PipeClient structure.

Dependencies

~225KB