登录
首页 » Windows Socket编程 » 一个类似于MSN的P2P的信息传递的例子

一个类似于MSN的P2P的信息传递的例子

于 2022-01-21 发布 文件大小:285.47 kB
0 325
下载积分: 2 下载次数: 1

代码说明:

一个类似于MSN的P2P的信息传递的例子--This is an example of P2P information transferring which is similar to that in MSN

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 用一个简单的TCP服务器
    一个简单的vc下tcp服务器端获取时间程序,希望对初学者有所帮助-Vc a simple tcp server-side access to the next time the procedure, and they hope to be helpful for beginners
    2022-08-08 03:26:43下载
    积分:1
  • one worth studying download from the Internet!
    一个值得研究的下载程序, 来自于网络!-one worth studying download from the Internet!
    2022-02-12 06:44:18下载
    积分:1
  • 这是简单的波形生成序,供大家参考,谢谢。
    这是简单的波形生成程序,供大家参考,谢谢。-code
    2022-03-22 02:01:20下载
    积分:1
  • 一个聊天室服务端和客户端序,可以设置服务器和端口
    一个聊天室服务端和客户端程序,可以设置服务器和端口-A chat room service client and the client program, you can set the server and port
    2023-03-19 22:40:03下载
    积分:1
  •  各个线任务分配是这样实现的。在开始下载时,文件平均分成若干块进行下载。如第一个线一开始的任务是从文件的0位置开始下载一直到72908位置处。线1每次下载...
     各个线程任务分配是这样实现的。在开始下载时,文件平均分成若干块进行下载。如第一个线程一开始的任务是从文件的0位置开始下载一直到72908位置处。线程1每次下载一块数据后就要调整任务,如第一次下载了20800字节的数据,那么线程1的任务将改为:20800-72908。如此下去,直到任务为72908-72908时表示线程1完成了当前的下载任务。此时,线程1就分析各个线程的任务,找出任务最为繁忙的一个线程:如线程3:14816-218724。那么线程1就自动去调整任务,拿50%的任务来再次下载。周而复始直到各个线程都完成任务。不过这里有一点需要注意:为了避免重复下载部分数据,在调整任务的时候,起始的文件便移量必须加上接受缓冲器的字节数,因为如前面所举的列子来看。线程1和线程3在平衡负载的时候,线程正在下载数据,如果所剩的数据比接受缓冲器的大小还小,线程1和线程3的部分下载数据将会重复。   在调整任务和分析任务的时候,会发现一个问题。就是读取文件数据太过频繁。于是我用了一个数据结构。在下载文件的过程中始终打开配置文件,这样速度提高了很多。在文件下载完毕后关闭文件。-various threads assignment is achieved. At the beginning of the download, the paper divided into a number of pieces of the download. As a thread of a task is to start from the position paper of 0 to start the download has 72,908 locations Department. Thread a download each one will have to adjust the data tasks, such as the first downloaded 20,800 gigabytes of data, then threaded a task will be re :20800- 72908. This situation continues until the mandate of 72908-72908 said threaded a completion of the cu
    2022-03-20 03:50:55下载
    积分:1
  • 开放源序的P2P的文件共享,主要是进行更新的文件共享开发和让所有人都能共享他的文件和成果
    开放源程序的P2P的文件共享,主要是进行更新的文件共享开发和让所有人都能共享他的文件和成果- The open source program P2P document sharing, mainly is carries on the renewal the document sharing development and enables all people all to share his document and the achievement
    2022-02-03 03:53:36下载
    积分:1
  • 一个简单的asp教
    一个简单的asp教程-a simple guide asp
    2022-02-13 15:53:56下载
    积分:1
  • 上面两个序用的通用代码,包括数据压缩
    上面两个程序用的通用代码,包括数据压缩 -The general code used by above two app, including compression
    2022-06-27 22:22:35下载
    积分:1
  • HB_EmEditor500 editing tools programming tools
    HB_EmEditor500 编辑工具 编程工具-HB_EmEditor500 editing tools programming tools
    2022-11-12 04:30:04下载
    积分:1
  • 一个以太网UDP数据包发送序,可以直接指定16进制数据以及对方的IP地址...
    一个以太网UDP数据包发送程序,可以直接指定16进制数据以及对方的IP地址-An Ethernet UDP packet sent procedures, can be directly designated 16 hexadecimal data, as well as each other s IP address
    2022-04-02 10:51:20下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载