如何在visual basic中的两个用户之间创建多个连接 [英] How to create multiple conections between two users in visual basic

查看:101
本文介绍了如何在visual basic中的两个用户之间创建多个连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望通过创建多个连接来在两个用户之间共享数据,以便数据快速传播。

我想制作像互联网下载这样的软件。互联网下载管理器使用单个服务器创建多个连接下载不同部分的数据。



我如何使用visual basic执行此操作?

I want make data sharing between two users by creating multiple conections so the data will travel fast.
I want to make software like internet download.Internet download manger create multiple conections with a single server and download data in different pieces.

How can i do it with visual basic?

推荐答案

它可以可以在几个不同级别的网络,远程处理或WCF之一上完成。

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

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

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



-SA
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


我认为多个连接对你没什么帮助。通常,您的下载速度受服务器(或发件人)的上传带宽或客户端(或收件人)的下载带宽限制,其中任何一个都将使用尽可能多的他们可以在一个连接中。进行多个连接不会增加吞吐量,除非您有意限制每个连接的带宽。



另一方面,如果一个客户端连接到多个服务器,并且客户端的下载带宽比任一服务器都多,那么你可以获得比单独连接到任一服务器更快的下载(当然,您仍然无法克服客户端的带宽限制,因此如果任一服务器已经具有与客户端的下载带宽相等或更大的上载带宽,那么什么都没有。



你可能想重新考虑你的目标。
I don''t think multiple connections will help you much. Generally, your download speed is limited by either the server''s (or the sender''s) upload bandwidth or the client''s (or the recipient''s) download bandwidth, and either of those will use as much as they can in a single connection. Making multiple connections does not increase your throughput, unless you''re purposely limiting the bandwidth per connection to begin with.

On the other hand, if a single client connects to multiple servers, and the client has more download bandwidth than either server, you can get faster downloads than connecting to either server individually (of course, you still can''t get around the client''s bandwidth limitation, so if either server already has equal or greater upload bandwidth than the client''s download bandwidth, you gain nothing).

You might want to rethink your goal.


这篇关于如何在visual basic中的两个用户之间创建多个连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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