传输数据的最佳方式 [英] Best way to transmit Data

查看:83
本文介绍了传输数据的最佳方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨大家好,



我正在编写一个异常处理程序,用户可以在其中发送包含用户定义消息的异常。 (就像 Mozilla Crash Reporter 那样)



目前我正在连接web.de一个免费的电子邮件提供商,并给自己发送邮件。



这个效果很好,但我认为它与其他技术真的太可怕了。



我目前正在使用TCP / IP搞乱,但这需要一台在线服务器。



所以我的主要问题是:您认为传输数据的最佳方式是什么?



感谢所有帮助人员



真诚地:

乔纳斯

Hi folks,

I'm currently programming an exception handler where the user can send the exception including an user defined message. (just like Mozilla Crash Reporter does)

Currently i am connecting to web.de a free E-Mail provider and sending myself a Mail.

This works quite good but i think that it's compared to other techniques really horrible.

I'm currently messing arount with TCP/IP, but this requires a server that's online.

So my Main Question is: What do you think is the best way of transmitting Data?

Thanks for all your help guys

Sincerely:
Jonas

推荐答案

最好的办法?它在很大程度上取决于来源和目的地。 TCP / IP很好,但您需要一个活动连接,或者一直在监听消息的客户端。 HTML很好,但存在同样的问题,客户端需要监听消息。对于未经请求的消息,电子邮件是显而易见的选择。
The best way? It largely depends on the source and destination. TCP/IP is fine but you need an active connection, or a client that is always listening for messages. HTML is fine but the same issue exists, the client needs to be listening for messages. For unsolicited messages email is the obvious choice.


如果您的通信基于TCP / IP(这是一个正确的想法,其他一切都不够可靠),一切都需要服务器这是在线。没有奇迹这样的东西。你可能会问但P2P怎么样?。矛盾的是,同样的事情。 Peer-top-peer应用程序只是同时扮演服务器部分(监听连接)和客户端(尝试连接到其他应用程序)的角色。



以下活动完全取决于您想要达到的目标。它可以在几个不同级别的网络,远程处理或WCF之一上完成。

请在我过去的解决方案中查看我对这些方法的概述:

我可以将byte []发送到其他电脑 [ ^ ],

沟通b / w LAN上的两个Windows应用程序。 [ ^ ]。



-SA
If you base your communications on TCP/IP (which is a right idea, everything else would hardly be reliable enough), everything requires "a server which is online". There is no such thing as miracle. You may ask "but how about P2P?". Paradoxically, same thing. Peer-top-peer applications simply all play the role of server part (listen to connections) and the client (try to connect to other applications) at the same time.

The following activity depends on what you want to achieve, exactly. It can be done on one of several different levels of networking, remoting or WCF.
Please see my overview of these approaches in my past solutions:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].

—SA


这篇关于传输数据的最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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