管道传输上的节俭IPC(Windows) [英] Thrift IPC over pipes transport (Windows)

查看:106
本文介绍了管道传输上的节俭IPC(Windows)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直关注Thrift对Windows的支持,并且由于许多贡献者,VS开发已经走了很长一段路.有针对编译器和C ++库的VS 2010项目,我已经证实它们在0.8中能很好地工作. http://thrift.apache.org/download/

I've been following Thrift support for Windows and VS development has come a long way thanks to a number of contributors. There are VS 2010 projects for the compiler and C++ library and I've confirmed that they work well in 0.8. http://thrift.apache.org/download/

我的问题是关于在Thrift中实现传输层,特别是管道(命名管道或匿名管道).我一直在使用有效的TCP传输,但是在所有应用程序都是本地应用程序的情况下,它会过大,并且通常会导致其他复杂情况,例如Windows防火墙.我想做的是在Windows下添加管道传输支持.

My question is about implementing a transport layer in Thrift, specifically pipes (named or anonymous). I've been using TCP transport which works but in cases where the apps are all local, it's overkill and generally causes other complications such as with Windows Firewall. What I'd like to do is add pipe transport support under Windows.

推荐答案

命名管道传输已添加到Thrift中.从SVN获取开发代码(当前为0.8.0-dev)-请参见 http://thrift.apache.org/download/下载详细信息.假设它不会破坏任何内容,则应将其包含在0.9.0稳定版本中.

Named pipe transport has been added to Thrift. Get the development code (currently 0.8.0-dev) from SVN -- see http://thrift.apache.org/download/ for download details. It should be included in the 0.9.0 stable release assuming it doesn't break anything.

TPipe传输现在具有对* NIX和Windows的跨平台支持.它在Windows下以命名管道或匿名管道的形式实现;在* NIX下,它通过利用TSocket使用域套接字. * NIX下尚不支持匿名管道.添加它应该相对简单,但是似乎没有需求.

The TPipe transport now has cross-platform support for *NIX and Windows. It's implemented as named or anonymous pipes under Windows; under *NIX it uses domain sockets by leveraging TSocket. Anonymous pipes are not yet supported under *NIX. It should be relatively straight-forward to add but there doesn't seem to be demand for it.

我还提供了一个示例项目,该示例项目应该使入门变得更容易. SVN中继现在在 thrift/contrib/transport-sample

I've also contributed a sample project that should make it easier to get started with this. The SVN trunk now has this under thrift/contrib/transport-sample

这篇关于管道传输上的节俭IPC(Windows)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆