进程间通信 [英] Interprocess Communication

查看:65
本文介绍了进程间通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


i正在研究两个应用程序之间的通信方法。

第一个应用程序是一个纯c ++项目,可能在Windows上可用linux。

第二个应用程序将成为使用winforms的dotnet应用程序。它将向第一个应用程序发出命令。 winforms用于为第三方用户创建一个美观且简单的界面。

通信方法必须在linux上可用才能创建第三个也可以在linux上运行的应用程序。 (也许使用单声道?我现在不知道它是如何工作的)


我找到了几个解决方案:


- 命名管道:好但是在win98 / 95下无法使用所以我无法使用这个

- Remoting in Net:相同和linux问题

- ...


你有什么想法吗?

thx you ^^


****************** ******************************** ****************** **

通过模糊软件发送@ http://www.fuzzysoftware。 com /

全面,分类,可搜索的ASP和EP链接集合。 ASP.NET资源......

Hi all,

i am working on a communication method between two apps.
the first app is a pure c++ project, potentially usable on windows and linux.
the second app will be a dotnet app using winforms. it will give orders to the first app. winforms are used to make a good looking and simple interface for third party users.
The communication method must be usable on linux in order to create a third app which could also run on linux. (maybe using mono? i dont know for now how it is working)

I found several solutions :

- Named pipes : good but not usable under win98/95 so i cant use this
- Remoting in Net : same and linux problems
- ...

Do you have an idea ?
thx you ^^

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...

推荐答案


ri****@free.fr 写道:
大家好,

我正在研究两个应用程序之间的通信方法。
第一个应用程序是一个纯c ++项目,可能在windows
和linux上使用。第二个应用程序将是使用winforms的dotnet应用程序。它将向第一个应用程序提供
订单。 winforms用于为第三方用户制作一个好看的和简单的界面。通信方法必须可以在linux上使用,以便创建一个
的第三个应用程序,它也可以在linux上运行。 (也许使用mono?我不知道

现在它是如何工作的)
我找到了几个解决方案:

- 命名管道:好但在win98下不可用/ 95所以我不能用这个
- Remoting in Net:相同和linux问题
Hi all,

i am working on a communication method between two apps.
the first app is a pure c++ project, potentially usable on windows and linux. the second app will be a dotnet app using winforms. it will give orders to the first app. winforms are used to make a good looking and
simple interface for third party users. The communication method must be usable on linux in order to create a third app which could also run on linux. (maybe using mono? i dont know
for now how it is working)
I found several solutions :

- Named pipes : good but not usable under win98/95 so i cant use this
- Remoting in Net : same and linux problems




- 套接字。

- 更高 - 等级网络机制,如Corba或Web Services。


Arnaud

MVP - VC



- Sockets.
- Higher-level network mechanism, such as Corba or Web Services.

Arnaud
MVP - VC

- 命名管道:好但在win98 / 95下不可用所以我不能使用这个
你真的想支持9x吗?

i will建议不要这样做。 - Remoting in Net:同样和linux的问题
- ...

你有什么想法吗?
我处于相同的情况。我正在开发必须在
linux上运行的软件,但我在Windows上进行开发跨平台,因为它具有视觉效果。

studio'的调试功能。


i已经实现了使用共享内存的fifo队列。一个程序将

消息放在一端,另一个程序读取它们。


i通过声明基类来解决跨平台问题/>
信号量和共享内存与#ifdef构造用于在linux上编译

和windows。


现在我有一个完整的跨平台应用程序框架,用

原生C ++实现。


对你来说^^

************ ************************************** ************ ********
通过模糊软件发送@ http:// www。 fuzzysoftware.com/
全面,分类,可搜索的ASP和ASP.NET资源链接集......
- Named pipes : good but not usable under win98/95 so i cant use this do you really want to support 9x?
i would advise against this. - Remoting in Net : same and linux problems
- ...

Do you have an idea ? i am in the same situation. i am developing software that has to run on
linux, but i do development crossplatform on windows because of visual
studio''s debugging capabilities.

i have implemented fifo queues that use shared memory. one program puts
messages in on one end, and the other program reads them.

i took care of the cross platform problems by declaring base classes for
semaphores and shared memory with #ifdef constructs for compiling on linux
and windows.

now i have a complete cross platform application framework, implemented in
native C++.


thx you ^^

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP &
ASP.NET resources...


这篇关于进程间通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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