登录
首页 » Windows Socket编程 » 重叠模型,客户端和服务器

重叠模型,客户端和服务器

于 2022-04-02 发布 文件大小:23.17 kB
0 217
下载积分: 2 下载次数: 1

代码说明:

overlapped model ,client and server

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

发表评论

0 个回复

  • 一包WinPcap层
    一个封装了Winpcap中二层函数的类-a package of Winpcap Layer-2 function category
    2023-04-25 20:05:04下载
    积分: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
  • WINSOCK服务器端示例程序说明 该程序是基于对话框编程的,是采用一对多的方式进行连接的。 整个程序主要由CServerDlg,CServerApp,CLis...
    WINSOCK服务器端示例程序说明 该程序是基于对话框编程的,是采用一对多的方式进行连接的。 整个程序主要由CServerDlg,CServerApp,CListenSocket,CClientSocket构成的。 (所有关于类的说明在代码中有) 下面简单介绍一下程序流程: 主程序调用CListenSocket类的对象来进行对Socket的监听,当收到请求时调用主程序的函数来处理相应的连接,把Socket放进队列中。 对于Socket的接收数据和断开连接是由消息来触发的,是通过调用基类CSocket中的虚函数重载来处理的。 注:详细的过程,在程序代码中均有注释!-Winsock server sample program note that the procedure was based on dialog programming, using one-to-many is the way to connect. The entire process by CServerDlg, CServerApp, CListenSocket, constitute the CClientSocket. (All categories on the note in code) The following outlines procedures have : main program called CListenSocket category to the target of the listening socket, when the call request is received when the main program functions to the corresponding connections, socket into the queue. Socket for the reception of data and disconnected from the news to trigger, by calling the base class CSocket the virtual function to handle the heavy load. Note : Details of the procedure code have Notes!
    2022-01-26 07:55:19下载
    积分:1
  • visual C++环境下,获取网卡的地址,从中可以学习硬件编程方面的知识。...
    visual C++环境下,获取网卡的地址,从中可以学习硬件编程方面的知识。-visual C++ environment, the access network card address, can learn from the hardware programming knowledge.
    2023-01-15 00:15:03下载
    积分:1
  • VC++编写的网络程序 小巧的端口扫描软件!
    VC++编写的网络程序 小巧的端口扫描软件!-VC++ Prepared procedures for compact network port scanning software!
    2022-07-25 14:13:42下载
    积分:1
  • VC++编写的基于TCP协议的聊天程序 可实现文字聊天与文件传输功能...
    VC++编写的基于TCP协议的聊天程序 可实现文字聊天与文件传输功能-VC++ Prepared based on the TCP protocol chat program can be achieved with text chat and file transfer capabilities
    2022-07-24 23:31:43下载
    积分:1
  • 列举当前安装的网络协议和协议属性
    列举当前安装的网络协议和协议属性-List current netware protocols installed and their properties
    2022-12-05 16:00:03下载
    积分:1
  • java编写的sslvpn代码,现在比较流行的一种VPN技术,附带有安装说明...
    java编写的sslvpn代码,现在比较流行的一种VPN技术,附带有安装说明-sslvpn prepared by the code, a more popular form of VPN technology, a fringe install
    2022-02-04 11:16:28下载
    积分:1
  • simple ie source code for freinds, the free version
    simple ie source code for freinds, 免费版本-simple ie source code for freinds, the free version
    2022-03-09 16:47:14下载
    积分:1
  • 这个实例实现了构建邮件服务器、简单的E
    这个实例实现了构建邮件服务器、简单的E-mail发送、发送附件、带身份验证的E-mail发送、跨代理的E-mail发送、接收E-mail、在Applet中收取E-mail、E-mail口令验证功能-achieve this example of building a mail server, a simple E-mail sent, send attachments, with identification of the E-mail sent, the inter-agency E-mail to send, receive E-mail, the Applet collect E-mail, E-mail passwords inspection Permit function
    2022-05-26 07:13:12下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载