还有替代远程处理吗? [英] Is there an alternative to remoting?

查看:50
本文介绍了还有替代远程处理吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在vb6中,可以创建一个exe作为activeX exe并在两个应用之间传递

。现在我们有远程处理需要打开一个tcp端口来支持,这看起来有点糟糕,因为另一个应用程序可能正在使用

相同的端口。是否有另一种方式在2个同事之间进行通信?

同一台机器?


谢谢,

Michael Culley

解决方案

Hello Michael,


您也可以执行跨AppDomain调用。这里最大的问题

可能是如何获得对另一个应用程序的AppDomain的引用。

这样,就我记忆所知,使用相同的Remoting mehcanics下面。


-

Dmitriy Lapshin [C#/ .NET MVP]

X-Unity测试工作室
http://x-unity.miik.com.ua/teststudio。 aspx

将单元测试的强大功能带到VS .NET IDE


" Michael Culley" < MI ** @ nospam.com>在消息中写道

新闻:%2 **************** @ TK2MSFTNGP10.phx.gbl ...

在vb6中可以创建一个exe作为activeX exe并在两个应用程序之间进行通信。现在我们有远程处理需要打开一个tcp端口才能收听,这似乎有点糟糕,因为另一个应用可能正在使用相同的端口。在同一台机器上是否有另外两种方式进行通信的方式?

谢谢,
Michael Culley





嗨迈克尔,


感谢您在此群组中发帖。

你可以创建自己的http频道来实现进程间的通信。

另外,你可以参考.Net互操作来使用Windows inter -process

通信技术

如命名管道,内存映射文件等等。


希望这有帮助,


祝你好运,

Jeffrey Tan

微软在线合作伙伴支持

安全! - www.microsoft.com/security

此帖子按原样提供没有保证,也没有赋予任何权利。


--------------------

|来自:Michael Culley < mi ** @ nospam.com>

|主题:还有替代远程处理吗?

|日期:2003年9月16日星期二15:14:45 +1000

|行数:10

| X-Priority:3

| X-MSMail-Priority:正常

| X-Newsreader:Microsoft Outlook Express 6.00.2800.1158

| X-MimeOLE:由Microsoft MimeOLE V6.00.2800.1165制作

|消息ID:< #E ************** @ TK2MSFTNGP10.phx.gbl>

|新闻组:microsoft.public.dotnet.languages.csharp

| NNTP-Posting-Host:cpe-144-137-26-13.vic.bigpond.net.au 144.137.26.13

|路径:

cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08

.phx.gbl!TK2MSFTNGP10.phx.gbl

|外翻:cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.csharp:184418

| X-Tomcat-NG:microsoft.public.dotnet.languages.csharp

|

|在vb6中,可以创建一个exe作为activeX exe并进行通信

|两个应用之间。现在我们有远程处理,需要打开一个tcp端口

|听着,这似乎有点蹩脚,因为另一个应用可能正在使用

|同一个港口。

|是否有另外两种方式进行通信的方式同一台机器?

|

|谢谢,

| Michael Culley

|

|

|




" Dmitriy Lapshin [C#/ .NET MVP]" < X - **** @ no-spam-please.hotpop.com>在消息新闻中写道:

:OH ************** @ TK2MSFTNGP10.phx.gbl ...

Hello Michael,

您也可以执行跨AppDomain调用。这里最大的问题可能是如何获取对另一个应用程序的
AppDomain的引用。这样,据我记忆,下面使用相同的Remoting mehcanics



这提出了我自己的问题,框架中是否有一种方法可以在不使用外部方法的情况下执行跨应用程序域通信(TCP,

管道,共享内存等)或远程处理。一个低级别的inproc通信

系统没有令人生畏或限制的远程处理

appdomains可以有其用途......

或者我可能只是疯了,这有关系吗?

-
Dmitriy Lapshin [C#/ .NET MVP]
X-Unity测试工作室
< a rel =nofollowhref =http://x-unity.miik.com.ua/teststudio.aspxtarget =_ blank> http://x-unity.miik.com.ua/teststudio.aspx
将单元测试的强大功能带到VS .NET IDE

Michael Culley < MI ** @ nospam.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP10.phx.gbl ...

在vb6中有可能创建一个exe作为activeX exe和
在两个应用程序之间进行通信。现在我们有远程处理需要打开一个tcp端口
来监听,这似乎有点糟糕,因为另一个应用可能正在使用相同的端口。有没有另一种方法在同一台机器上的2个exes
之间进行通信?

谢谢,
Michael Culley


In vb6 it was possible to create an exe as an activeX exe and communicate
between 2 apps. Now we have remoting which requires opening a tcp port to
listen on, which seems kinda crappy cause another app might be using the
same port. Is there an alternative way of communicating between 2 exes on
the same machine?

Thanks,
Michael Culley

解决方案

Hello Michael,

You can perform cross-AppDomain calls as well. The biggest problem here
would probably be how to get a reference to another application''s AppDomain.
This way, as far as I remember, uses the same Remoting mehcanics underneath.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Michael Culley" <mi**@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...

In vb6 it was possible to create an exe as an activeX exe and communicate
between 2 apps. Now we have remoting which requires opening a tcp port to
listen on, which seems kinda crappy cause another app might be using the
same port. Is there an alternative way of communicating between 2 exes on
the same machine?

Thanks,
Michael Culley





Hi Michael,

Thank you for posting in this group.

You can create your own http channel to implement inter-process
communication.
Also, you can refer to the .Net interop to use the Windows inter-process
communication technologies
such as Named pipe, Memory Mapping file and so on.

Hope this helps,

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Michael Culley" <mi**@nospam.com>
| Subject: Is there an alternative to remoting?
| Date: Tue, 16 Sep 2003 15:14:45 +1000
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#E**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: cpe-144-137-26-13.vic.bigpond.net.au 144.137.26.13
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.csharp:184418
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| In vb6 it was possible to create an exe as an activeX exe and communicate
| between 2 apps. Now we have remoting which requires opening a tcp port to
| listen on, which seems kinda crappy cause another app might be using the
| same port. Is there an alternative way of communicating between 2 exes on
| the same machine?
|
| Thanks,
| Michael Culley
|
|
|



"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:OH**************@TK2MSFTNGP10.phx.gbl...

Hello Michael,

You can perform cross-AppDomain calls as well. The biggest problem here
would probably be how to get a reference to another application''s AppDomain. This way, as far as I remember, uses the same Remoting mehcanics underneath.
That brings up a question of my own, is there a way in the framework to
perform cross app-domain communication without using external methods (TCP,
pipes, shared memory, etc) or remoting. A low-level inproc communication
system that doesn''t have the annoyances or restrictions of remoting between
appdomains could have its uses...
Or I could just be crazy, does it matter?
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Michael Culley" <mi**@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...

In vb6 it was possible to create an exe as an activeX exe and communicate between 2 apps. Now we have remoting which requires opening a tcp port to listen on, which seems kinda crappy cause another app might be using the
same port. Is there an alternative way of communicating between 2 exes on the same machine?

Thanks,
Michael Culley



这篇关于还有替代远程处理吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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