How to custom channel(endpoint)? [C++]

50 views
Skip to first unread message

Saigut

unread,
May 10, 2023, 10:51:57 PM5/10/23
to grpc.io
I want to manage the sending and receiving of bytes under grpc myself. And I may use a 
reliable transmission protocol rather than TCP.

From this https://groups.google.com/g/grpc-io/c/6-DyXDp2WiY/m/kdAqjknABQAJ ,  I know that we can create an cutom endpoint. 

But how to achieve it? is there any document or example? 

Thank you.

AJ Heller

unread,
Jun 20, 2023, 12:30:04 PM6/20/23
to grpc.io
The gRPC public API now provides a way for custom endpoint implementations to be provided to the library. It's called the EventEngine API, and you can read the generated API docs here (though I find the interface code itself more readable). To control the details of how bytes are sent and received, your task would be to write a complete EventEngine implementation and provide it to gRPC at runtime via the SetEventEngineFactory method.

Saigut

unread,
Jul 10, 2023, 2:08:34 AM7/10/23
to grpc.io
That seems great, thank you!
Reply all
Reply to author
Forward
0 new messages