moshangcheng
moshangcheng

Reputation: 359

Is it possible to use java client to call c++ server in the same process using InProcessChannel?

Both grpc-java and grpc-c++ have the support for in-process channel, which is used if grpc client and server are in the same process.

So I have a question, is it possible to use java client to call c++ server in the same process using in-process channel?

Upvotes: 2

Views: 433

Answers (1)

Eric Anderson
Eric Anderson

Reputation: 26464

No. The inprocess channels in each language are language-specific. You would need to use a normal channel and a port of localhost.

While it might be possible to use socketpair() to do something similar, it would require some effort to get working.

Upvotes: 1

Related Questions