如何将消息从一个系统发送到另一个系统 [英] How to send message from one system to another system

查看:95
本文介绍了如何将消息从一个系统发送到另一个系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个创建一个项目,在该项目中添加消息模块,因此我想如何使用Windows应用程序(c#)将消息从一个系统发送到另一个系统.

Hi,

I have a create a one project,in this project add the message module, so i want how to sent the message from one system to another system using windows application(c#).

推荐答案

我建​​议您使用Google的"WCF",它相对易于使用,并且允许跨机器边界进行进程间通信.如果进程在同一台计算机上运行,​​则WCF可以使用命名管道,这非常快.

您也可以使用Google进行".net Remoting",它比WCF快得多,但是在大多数情况下,除非您真的有一个高端应用程序,否则代码的复杂性是不值得的.
I suggest you google for "WCF" it is relatively easy to use and will allow inter-process commmunication across machine boundaries. If the processes are running on the same machine, WCF can use named pipes which is pretty fast.

You can also Google for ".net Remoting", it is very slighty faster than WCF, but for the most part the complexity of the code isn''t worth it unless you really have a high-end app.


除了远程处理和WCF(请参阅我对Keith答案的评论),您还可以在较低级别上开发网络应用程序.请查看我过去的答案中对它们的概述:
我如何将byte []发送到另一台PC [ ^ ],
在局域网上与两个Windows应用程序进行通信. [^ ].

祝你好运,
—SA
In addition to the remoting and WCF (please also see my comments to the answer by Keith), you can develop networking applications on some lower levels. Please see my overview of them in my past answers:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].

Good luck,
—SA


尝试以下链接:

http://www.eggheadcafe. com/community/csharp/2/10227047/how-to-send-message-one-to-another-computer.aspx [
Try following link:

http://www.eggheadcafe.com/community/csharp/2/10227047/how-to-send-message-one-to-another-computer.aspx[^]


这篇关于如何将消息从一个系统发送到另一个系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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