使用互联网C# [英] working with internet c#

查看:107
本文介绍了使用互联网C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过桌面应用程序通过Internet发送数据.我对套接字有些了解.我已经在LAN中传输了数据,但是现在我想通过Internet传输数据.传输大量数据和少量数据的最佳方法是什么?

I would like to send data over internet through a desktop application. I know a little bit about sockets. I have transferred the data within the LAN, but now I want to transfer the data over the internet. What is the best way to transfer both large and small quantities of data?

推荐答案

当您给某人明确的答案并且他们只是问相同的问题时,这确实很烦人.再次提问.如果您的数据采用已知格式,则通过Internet发送数据的最佳方法是通过Web服务.如果要发送随机数据或大文件,答案是FTP. FTP意味着文件就在那里. Web服务意味着您可以在另一端运行代码.您可以编写一个可以手动连接并通过Web进行交谈的应用程序,但是在大多数情况下,我看不到这一点.我想这避免了需要Web服务器.

[<
It''s really annoying when you give someone clear answers and they just ask the same question again. The best way to send data over the internet is via a webservice, if your data is in a known format. If you want to send random data, or large files, the answer is FTP. FTP means the file is just there. A webservice means you can run code on the other end. You could write an app that connects manually and converses over the web, but I don''t see the point, in most cases. I guess it avoids needing a web server.

This[^] is how to use google. I see some good info on using sockets in these pages.


这篇关于使用互联网C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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