开发者

protobuf-net and rpc over tcp

I'm looking for a rpc over tcp implementation that uses protobuf-net (or any other .net implementation of pro开发者_开发百科tobuf).

Any suggestions?


protobuf (under any implementation) is not an RPC stack; it is a serialization stack. You can, however, use WCF to provide the RPC, but hook protobuf-net as the serialization layer inside WCF. That do?

I have a bespoke RPC layer using http, but I haven't implemented one for TCP, and I haven't looked at callbacks. WCF provides these built in, so maybe that is worth looking at?


For a different RPC implementation that supports protobuf-net, have a look at protobuf-remote. It supports both C++ (using the official implementation) and C# (using protobuf-net). Communication is done using TCP.

I have used it myself to connect from a C# client to a C++ server, and send Proto messages.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜