is Cronet transport available for GRPC C# as well? I am looking into a 
gaming application where I would like to use GRPC C#. I am looking into a 
possible ways to use Cronet for Quic. If it is not supported, is there a 
way that I can use any other UDP client/transport underneath GRPC?

On Friday, September 11, 2020 at 4:53:33 PM UTC-7 [email protected] wrote:

> Hi Ashish, if you use gRPC-Objc, you can simply switch to Cronet transport 
> by setting *callOptions.transportType == GRPCTransportTypeCronet*. If you 
> are using gRPC-C++, you also can use Cronet underneath GRPC, here's an 
> example to use gRPC with Cronet native interface:
>
> ```
> struct Cronet_Engine* cronetEngine = createEngineFunc(....);
> // get stream_engine ptr for gRPC-cronet
> stream_engine* stream_engine = Cronet_Engine_GetStreamEngine(cronetEngine);
>
> std::shared_ptr<grpc_impl::ChannelCredentials>credentials = 
> ::grpc::CronetChannelCredentials(stream_engine);
>
> // create cronet channel
> std::shared_ptr<::grpc::Channel> channel = 
> ::grpc::CreateCustomChannel(_endpoint, credentials, _args);
>
> // create stub with cronet channel
> auto stub = SomeService::NewStub(channel);
> // make async RPC calls with stub...
> ```
>
> On Friday, September 11, 2020 at 4:21:56 PM UTC-7 [email protected] 
> wrote:
>
>> Is it possible to use Cronet underneath GRPC for quic support?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/68c8d9bd-1c02-44a6-8349-ae0348c50855n%40googlegroups.com.

Reply via email to