grpc / grpc/grpc-rust

How to implement an async read/write incoming stream with tokio named pipe?

Open
#1,518 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
12.5k
Forks
1.3k
Avg merge
4d 7h
Merged PRs (30d)
24

Description

Hi all.

I'd like to know how could I implement an incoming stream with async read/write [`tokio::net::windows::named_pipe`](https://docs.rs/tokio/latest/tokio/net/windows/named_pipe/index.html)?

I'm new to tokio and tonic, and my use case requires me to use Windows named pipe as the gRPC backend transport.

I know the named pipe stream has to implement the `futures::stream::Stream` trait (i.e. the `poll_next` method), but I have no idea of how to write the working code.

Do you guys have any hint for this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.