#windows #named #pipes

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

#11 in #named

Download history 1002/week @ 2021-01-21 1014/week @ 2021-01-28 945/week @ 2021-02-04 841/week @ 2021-02-11 824/week @ 2021-02-18 1194/week @ 2021-02-25 1124/week @ 2021-03-04 987/week @ 2021-03-11 828/week @ 2021-03-18 784/week @ 2021-03-25 806/week @ 2021-04-01 895/week @ 2021-04-08 934/week @ 2021-04-15 937/week @ 2021-04-22 821/week @ 2021-04-29 640/week @ 2021-05-06

3,807 downloads per month
Used in 75 crates (7 directly)

MIT/Apache

57KB
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

~27KB