Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add examples #21

Open
SoniEx2 opened this issue Dec 15, 2018 · 1 comment
Open

add examples #21

SoniEx2 opened this issue Dec 15, 2018 · 1 comment

Comments

@SoniEx2
Copy link

SoniEx2 commented Dec 15, 2018

how do you use this?

@tokcum
Copy link

tokcum commented Apr 4, 2022

Hi,

I'm also struggeling with how to use miow. I would like to implement named pipe support in the thrift crate. I've already added the Unix Domain Socket and found it quite straight forward. However, with Windows Named Pipes, I'm not so familiar.

Thrift requires me to split IO into a read and a write part, i.e. something that implements the trait Read and another thing that implements the trait Write. miow does not provide a type implementing these traits. However, File does and miow creates a File when I use miow::pipe::connect. Unfortunately this does not work out of the box.

I guess I have to create the named pipe first and then create two Files via miow::pipe::connect. Another guess is that I have to use the NamedPipeBuilder and create the Read part with input(true).output(false) and the Write part vice versa. I'm not sure though.

@alexcrichton: I'm a fan of yours. I listened to your Rust podcast when I started programming Rust. Could you please advice? With some upfront guidance, I'm happy to contribute a small example to miow so other users can benefit from this. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants